
:root {
  --blue: #0878b9;
  --blue-deep: #005d9e;
  --navy: #071c38;
  --navy-2: #0d2948;
  --red: #e31b23;
  --sky: #eef8ff;
  --line: #dce5ed;
  --muted: #687386;
  --white: #ffffff;
  --ink: #102342;
  --success: #087f5b;
  --error: #b4232c;
  --shadow: 0 22px 60px rgba(7, 39, 73, .15);
  --radius: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Nunito Sans", Arial, sans-serif;
  background: #f7fbfe;
}

button, input, select { font: inherit; }

a { color: inherit; }

.hidden { display: none !important; }

/* Header */
.site-header {
  background: #fff;
  border-bottom: 3px solid var(--red);
  position: relative;
  z-index: 20;
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 92px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.header-logo img {
  width: 190px;
  height: 78px;
  object-fit: contain;
  object-position: left center;
}

.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border: 1.5px solid var(--blue);
  color: var(--blue-deep);
  background: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 800;
  transition: .2s ease;
}

.header-action:hover {
  color: #fff;
  background: var(--blue);
}

/* Page */
.page-main {
  min-height: 620px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(235,247,255,.98) 0 42%, rgba(255,255,255,.95) 42% 100%);
}

.page-main::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,.05), rgba(255,255,255,.42));
}

.page-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(270px, .85fr) minmax(520px, 1.55fr);
  gap: 44px;
  align-items: stretch;
  position: relative;
  z-index: 2;
}

/* Feature panel */
.feature-panel {
  position: relative;
  padding: 64px 12px 56px;
  display: flex;
  align-items: flex-start;
}

.feature-panel::before {
  content: "";
  position: absolute;
  inset: auto -40px 0 -80px;
  height: 270px;
  background:
    linear-gradient(to top, rgba(235,247,255,.1), rgba(235,247,255,.9)),
    url("aircraft-bg.jpg") center 58% / cover no-repeat;
  opacity: .55;
  mask-image: linear-gradient(to top, #000 50%, transparent 100%);
}

.feature-content {
  position: relative;
  z-index: 2;
  max-width: 390px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue-deep);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.feature-title {
  margin: 0;
  color: var(--navy);
  font-family: "Bricolage Grotesque", "Nunito Sans", sans-serif;
  font-size: clamp(38px, 4vw, 56px);
  line-height: 1.04;
  letter-spacing: -1.3px;
}

.feature-copy {
  margin: 20px 0 0;
  color: #4d5e74;
  font-size: 18px;
  line-height: 1.55;
}

.benefits {
  display: grid;
  gap: 17px;
  margin-top: 32px;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--navy);
  font-weight: 700;
}

.benefit i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  color: #fff;
  background: linear-gradient(145deg, var(--blue), var(--blue-deep));
  border-radius: 50%;
}

/* Card */
.form-wrap {
  padding: 48px 0;
  display: flex;
  align-items: center;
}

.form-card {
  width: 100%;
  padding: 34px 38px;
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(214,226,236,.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.form-head h1 {
  margin: 0;
  color: var(--navy);
  font-family: "Bricolage Grotesque", "Nunito Sans", sans-serif;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.12;
}

.form-head p {
  margin: 7px 0 0;
  color: var(--muted);
}

.switch-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-deep);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.switch-link i { margin-right: 2px; }

/* Stepper */
.stepper {
  display: flex;
  align-items: center;
  margin: 28px 0 30px;
}

.step {
  min-width: 70px;
  display: grid;
  justify-items: center;
  gap: 7px;
  color: #8490a1;
}

.step-dot {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 2px solid #e0e7ed;
  border-radius: 50%;
  background: #eef2f5;
  font-weight: 900;
}

.step-label {
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.step.active,
.step.complete { color: var(--blue-deep); }

.step.active .step-dot,
.step.complete .step-dot {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

.step-line {
  height: 2px;
  flex: 1;
  margin: 0 8px 20px;
  background: #e0e7ed;
}

.step-line.complete { background: var(--blue); }

/* Forms */
.form-section-title {
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  font-weight: 900;
  color: var(--navy);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field.full { grid-column: 1 / -1; }

.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
}

.required { color: var(--red); }

.control {
  position: relative;
}

.control > i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a1af;
  pointer-events: none;
}

.control input,
.control select,
.phone-grid input,
.phone-grid select {
  width: 100%;
  height: 48px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  outline: none;
  color: var(--navy);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: .18s ease;
}

.control input,
.control select { padding: 0 42px; }

.control select {
  appearance: none;
  cursor: pointer;
}

.control input:focus,
.control select:focus,
.phone-grid input:focus,
.phone-grid select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(8,120,185,.11);
}

.control input.invalid,
.control select.invalid,
.phone-grid input.invalid {
  border-color: var(--error);
  background: #fff7f7;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: #75849a;
  cursor: pointer;
}

.error-text {
  display: block;
  min-height: 16px;
  margin-top: 5px;
  color: var(--error);
  font-size: 11px;
  font-weight: 700;
}

.help-note {
  padding: 12px 14px;
  margin: 0 0 18px;
  border-left: 4px solid var(--blue);
  background: var(--sky);
  color: var(--blue-deep);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.phone-grid {
  display: grid;
  grid-template-columns: 116px 1fr;
}

.phone-grid select {
  padding: 0 10px;
  border-radius: 10px 0 0 10px;
  background: var(--sky);
}

.phone-grid input {
  padding: 0 14px;
  border-radius: 0 10px 10px 0;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #4f6075;
  font-size: 12px;
  line-height: 1.55;
}

.checkbox-row input {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--blue);
}

.checkbox-row a {
  color: var(--blue-deep);
  font-weight: 900;
}

.consent-box {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid #cfe5f2;
  border-radius: 12px;
  background: #f4faff;
}

.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.actions.end { justify-content: flex-end; }

.btn {
  min-height: 48px;
  padding: 0 24px;
  border-radius: 9px;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 900;
  transition: .18s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: 0 12px 22px rgba(0,93,158,.20);
}

.btn-primary:hover { transform: translateY(-1px); }

.btn-secondary {
  color: var(--navy);
  background: #f3f6f8;
  border: 1px solid var(--line);
}

.btn-block { width: 100%; }

.btn-outline {
  color: var(--navy);
  border: 1.5px solid #a8b7c8;
  background: #fff;
}

.btn:disabled { opacity: .65; cursor: wait; }

.form-notice {
  display: none;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 800;
}

.form-notice.show { display: block; }
.form-notice.info { color: #075a84; background: #eaf7fe; border: 1px solid #bce2f6; }
.form-notice.success { color: #0b6a4e; background: #eaf9f3; border: 1px solid #b8e5d4; }
.form-notice.error { color: #8f1820; background: #fff0f1; border: 1px solid #f1c1c5; }

.success-screen {
  padding: 48px 20px;
  text-align: center;
}

.success-screen i {
  color: var(--success);
  font-size: 64px;
}

.success-screen h2 {
  margin: 18px 0 8px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 32px;
}

.success-screen p {
  max-width: 520px;
  margin: 0 auto 20px;
  color: var(--muted);
}

.member-number {
  display: inline-flex;
  padding: 12px 18px;
  margin-bottom: 24px;
  color: var(--blue-deep);
  border: 1px solid #b9def1;
  background: var(--sky);
  border-radius: 10px;
  font-weight: 900;
}

/* Login */
.login-page .page-grid {
  grid-template-columns: minmax(320px, .85fr) minmax(520px, 1.4fr);
}

.login-page .feature-panel::before {
  inset: auto -60px 0 -80px;
  height: 390px;
  opacity: .72;
  mask-image: linear-gradient(to top, #000 58%, transparent 100%);
}

.login-page .feature-title { font-size: clamp(42px, 5vw, 62px); }

.login-form {
  display: grid;
  gap: 18px;
}

.inline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.text-link {
  color: var(--blue-deep);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #748196;
  font-size: 12px;
  font-weight: 900;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.otp-actions {
  display: grid;
  gap: 10px;
}

/* Footer */
.site-footer {
  color: #fff;
  background: linear-gradient(135deg, #071928, #102b45);
  border-top: 3px solid var(--red);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 24px;
  display: grid;
  grid-template-columns: 1.35fr repeat(4, 1fr);
  gap: 30px;
}

.footer-grid h3 {
  margin: 0 0 12px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 15px;
}

.footer-grid a {
  display: block;
  width: fit-content;
  margin: 0 0 8px;
  color: #dce6ef;
  font-size: 12px;
  text-decoration: none;
}

.footer-grid a:hover { color: #fff; }

.footer-brand img {
  width: 150px;
  height: 76px;
  object-fit: contain;
}

.footer-brand p {
  margin: -5px 0 0 40px;
  color: #ff5258;
  font-size: 11px;
  font-style: italic;
  font-weight: 800;
}

.social-links {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.social-links a {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  margin: 0;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
}

.footer-copy {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 22px;
  border-top: 1px solid rgba(255,255,255,.13);
  color: #c3cfda;
  text-align: center;
  font-size: 11px;
}

/* Responsive */
@media (max-width: 980px) {
  .page-main {
    background: linear-gradient(180deg, #edf8ff 0 44%, #fff 44% 100%);
  }

  .page-grid,
  .login-page .page-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .feature-panel {
    min-height: 400px;
    padding: 48px 18px 38px;
  }

  .feature-content { max-width: 560px; }

  .feature-panel::before {
    inset: auto -30px 0 -30px;
    height: 240px;
  }

  .form-wrap { padding: 0 0 38px; }

  .form-card { margin-top: -12px; }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .header-inner {
    min-height: 78px;
    width: min(100% - 24px, 1180px);
  }

  .header-logo img {
    width: 150px;
    height: 62px;
  }

  .header-action {
    min-height: 38px;
    padding: 0 13px;
    font-size: 12px;
  }

  .page-grid {
    width: min(100% - 24px, 1180px);
  }

  .feature-panel {
    min-height: 365px;
    padding: 36px 8px 28px;
  }

  .feature-title {
    font-size: 38px;
  }

  .feature-copy { font-size: 16px; }

  .benefits {
    gap: 13px;
    margin-top: 24px;
  }

  .benefit { font-size: 13px; }

  .form-card {
    padding: 25px 18px;
    border-radius: 18px;
  }

  .form-head {
    display: block;
  }

  .switch-link {
    margin-top: 13px;
    white-space: normal;
  }

  .form-grid { grid-template-columns: 1fr; }

  .field.full { grid-column: auto; }

  .step {
    min-width: 60px;
  }

  .step-line { margin-left: 4px; margin-right: 4px; }

  .actions {
    flex-direction: column-reverse;
  }

  .actions .btn { width: 100%; }

  .inline-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    padding-top: 28px;
  }

  .footer-brand { grid-column: auto; }

  .footer-copy { text-align: left; }
}
