@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400..600&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --navy-deep: #0C0405;
  --navy-mid: #3D0E16;
  --navy-line: rgba(201, 161, 90, 0.16);
  --gold: #C9A15A;
  --gold-soft: #E7C989;
  --ivory: #F1E9DC;
  --slate: #AD8F82;
  --card-bg: #FFFDF9;
  --error: #C1584B;
  --radius-lg: 22px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--ivory);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
}

/* ---------- LEFT BRAND PANEL ---------- */
.brand-panel {
  margin-bottom: 76px;
  position: relative;
  background:
    radial-gradient(ellipse 900px 500px at 20% 15%, rgba(201, 161, 90, 0.10), transparent 60%),
    linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
  padding: clamp(32px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-right: 1px solid var(--navy-line);
}

.brand-copy {
  z-index: 2;
  max-width: 460px;
  width: 100%;
  margin: auto;
}

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 18px;
}

.headline {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.15;
  margin: 0 0 18px;
  color: var(--ivory);
}

.headline em {
  font-style: italic;
  color: var(--gold-soft);
}

.sub {
  font-size: 15px;
  line-height: 1.65;
  color: var(--slate);
  margin: 0 0 28px;
  max-width: 400px;
}

.service-tags {
  display: flex;
  gap: 10px 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.service-tags span:not(.sep) {
  padding: 0 2px;
}

.service-tags .sep {
  color: var(--navy-line);
  margin: 0 5px;
}

/* flight path illustration */
.flightpath {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.9;
  pointer-events: none;
}

/* ---------- RIGHT AUTH PANEL ---------- */
.auth-panel {
  margin-bottom: 76px;
  background: var(--navy-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vw, 56px);
}
.card-l {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--card-bg);
  color: #20242B;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55),
    0 0 0 1px rgba(255, 255, 255, .03);
  overflow: visible;
}

.card-top {
  padding: 30px 30px 22px;
}

.card-eyebrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9AA3B2;
  margin-bottom: 14px;
}

.card-eyebrow .id {
  color: var(--gold);
}

.card-title {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 6px;
}

.card-desc {
  font-size: 13.5px;
  color: #6B7280;
  margin: 0;
  line-height: 1.5;
}

/* perforation divider — boarding pass tear line */
.perforation {
  position: relative;
  height: 1px;
  margin: 0 0 4px;
}

.perforation::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background-image: repeating-linear-gradient(to right, #DCD6C8 0 8px, transparent 8px 16px);
}

.perforation .cut {
  position: absolute;
  top: -11px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy-deep);
}

.perforation .cut.left {
  left: -11px;
}

.perforation .cut.right {
  right: -11px;
}

.card-body {
  padding: 22px 30px 28px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #3A3F4B;
  margin-bottom: 8px;
}
.phone-row {
  display: flex;
  gap: 8px;
  position: relative;
  z-index: 100;
}

.cc-select {
  background: #FBFAF7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23222' d='M5.5 7.5L10 12l4.5-4.5'/%3E%3C/svg%3E") no-repeat right 10px center;
  height: 50px;
   font-family: 'IBM Plex Mono', monospace;
  appearance: none;
   color: #20242B;
  -webkit-appearance: none;
  -moz-appearance: none;
  font-size: 16px;
  padding: 0 30px 0 10px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #E4E0D5 !important;
  background-size: 24px;
  position: relative;
  z-index: 101;
}
.cc-select:hover{
  border-color: var(--gold) !important;
  box-shadow: 0 0 0 3px rgba(201,161,90,.18);
  background-color: #FBFAF7;
}


.phone-input {
  flex: 1;
  height: 50px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #E4E0D5;
  background: #FBFAF7;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 16px;
  letter-spacing: 0.03em;
  color: #20242B;
  outline: none;
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.phone-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 161, 90, 0.18);
}

.field-hint {
  font-size: 11.5px;
  color: #8A8F99;
  margin-top: 7px;
}

.field-hint.error {
  color: var(--error);
}

.btn-primary {
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 4px;
  background: linear-gradient(135deg, #b10606, #0e0c0c);
  color: #fff;
  border: 1px solid #b10606;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, opacity .15s ease;
  box-shadow: 0 10px 22px -8px rgba(201, 161, 90, 0.55);
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #D8B36C, var(--gold));
  border: 1px solid var(--gold);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.assurance {
  display: flex;
  align-items: center;
  gap: 7px;
  justify-content: center;
  font-size: 11.5px;
  color: #8A8F99;
  margin-top: 14px;
}

.assurance svg {
  flex: 0 0 auto;
}

/* OTP step */
.otp-target {
  font-size: 13.5px;
  color: #4B5160;
  margin: -4px 0 18px;
}

.otp-target strong {
  color: #20242B;
}

.otp-target button {
  background: none;
  border: none;
  padding: 0;
  color: var(--gold);
  font-weight: 600;
  font-size: 12.5px;
  cursor: pointer;
  text-decoration: underline;
  margin-left: 6px;
}

.otp-boxes {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.otp-boxes input {
  width: 100%;
  aspect-ratio: 1/1;
  text-align: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 20px;
  font-weight: 600;
  color: #20242B;
  border-radius: var(--radius-sm);
  border: 1.5px solid #E4E0D5;
  background: #FBFAF7;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.otp-boxes input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 161, 90, 0.18);
}

.otp-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: #6B7280;
  margin-bottom: 20px;
}

.otp-timer {
  font-family: 'IBM Plex Mono', monospace;
  color: #3A3F4B;
  font-weight: 600;
}

.otp-resend {
  background: none;
  border: none;
  padding: 0;
  color: #B7B0A0;
  font-weight: 600;
  font-size: 12.5px;
  cursor: not-allowed;
}

.otp-resend.active {
  color: var(--gold);
  cursor: pointer;
  text-decoration: underline;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #6B7280;
  background: none;
  border: none;
  cursor: pointer;
  margin-top: 16px;
  padding: 0;
}

.back-link:hover {
  color: #20242B;
}

/* boarding-pass progress strip (barcode style) */
.progress-strip {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  padding: 14px 30px 18px;
  background: #F1EDE2;
}

.progress-strip .bar {
  width: 3px;
  background: #D8D2C2;
  border-radius: 1px;
}

.progress-strip .bar.on {
  background: var(--navy-mid);
}

.progress-strip .bar:nth-child(3n) {
  height: 22px;
}

.progress-strip .bar:nth-child(3n+1) {
  height: 14px;
}

.progress-strip .bar:nth-child(3n+2) {
  height: 18px;
}

.progress-strip {
  position: relative;
}

.progress-strip .step-label {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: #8A8F99;
  background: #F1EDE2;
  padding-left: 8px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: #20242B;
  color: var(--ivory);
  font-size: 13px;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast .tick {
  color: var(--success);
}

.step {
  display: none;
}

.step.active {
  display: block;
  animation: fadeUp .35s ease;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ---------- RESPONSIVE ---------- */

@media (max-width: 991px) {
  .screen {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    border-right: none;
    border-bottom: 1px solid var(--navy-line);
    padding: 68px 24px 20px;
    min-height: auto;
    margin-bottom: -1px;
  }

  .brand-copy {
    text-align: center;
    align-self: center;
  }

  .auth-panel {
    background: radial-gradient(ellipse 900px 500px at 20% 15%, rgba(201, 161, 90, 0.10), transparent 60%), linear-gradient(180deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
    padding: 28px 18px 36px;
    margin-bottom: 61px;
  }

  .eyebrow {
    margin: 0 0 14px;
  }

  .flightpath {
        display: none;
    }

  .headline {
    font-size: clamp(24px, 5vw, 32px);
  }

  .sub {
    display: none;
  }

  .card-top {
    padding: 22px 30px 20px;
  }
}

@media(max-width:767px) {
  .brand-panel {
    padding: 50px 24px 20px;
  }

  .btn-primary {
    font-size: 13px;
    height: 40px;
  }

  .card-desc {
    font-size: 12.5px;
  }

  .card-body {
    padding: 18px 30px 18px;
  }

  .card-top {
    padding: 18px 30px 18px;
  }

  .card-title {
    font-size: 22px;
    margin: 0 0 4px;
  }

  .phone-input {
    height: 42px;
    font-size: 14px;
  }

  .cc-select {
    height: 42px;
    font-size: 14px;
  }

  .service-tags {
    letter-spacing: 0.05px;
  }
}

@media (max-width: 480px) {
  .card {
    max-width: 100%;
    border-radius: 18px;
  }

  .card-top {
    padding: 14px 20px 14px;
  }

  .card-body {
    padding: 18px 20px 24px;
  }

  .progress-strip {
    padding: 12px 20px 16px;
  }

  .otp-boxes {
    gap: 6px;
  }

  .otp-boxes input {
    font-size: 17px;
  }

  .service-tags {
    font-size: 10.5px;
  }


  .brand-panel {
    padding: 36px 14px 14px;
  }

  .eyebrow {
    font-size: 10.5px;
    margin: 0 0 4px;
  }

  .headline {
    margin: 0 0 14px;
  }

  .service-tags .sep {
    margin: 0 4px;
  }

  .auth-panel {
    padding: 12px 18px 22px;
    margin-bottom: 18px;
  }

  .card-title {
    font-size: 20px;
  }

  .btn-primary {
    font-size: 12px;
    height: 36px;
  }

  .phone-input {
    border-radius: 6px;
    height: 38px;
    font-size: 12px;
  }

  .cc-select {
    border-radius: 6px;
    height: 38px;
    font-size: 12px;
    flex-basis: 76px;
  }
}
