/* ============================================================
   BNA — Customer Sign Up ("The Enrollment")
   Light editorial treatment: blueprint navy × brand blue × gold
   Loaded only on customer/auth/sign-up via @push
   ============================================================ */

.auth-shell {
  --au-ink:          #0B1B3A;
  --au-ink-2:        #10265c;
  --au-primary:      #2563eb;
  --au-primary-deep: #1d4fd7;
  --au-primary-soft: rgba(37, 99, 235, 0.08);
  --au-primary-ring: rgba(37, 99, 235, 0.18);
  --au-gold:         #d9930d;
  --au-gold-soft:    rgba(217, 147, 13, 0.14);
  --au-text:         #1f2937;
  --au-text-2:       #64748b;
  --au-text-3:       #94a3b8;
  --au-line:         #e6eaf2;
  --au-field-bg:     #f8fafc;
  --au-field-line:   #dde4ee;
  --au-danger:       #dc2626;
  --au-radius:       14px;
  --au-radius-lg:    22px;
  --au-ease:         cubic-bezier(0.22, 1, 0.36, 1);

  position: relative;
  padding: clamp(28px, 5vh, 64px) 0 clamp(48px, 8vh, 96px);
  overflow: hidden;
}

/* atmosphere: soft brand glows behind the stage */
.auth-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(620px 400px at 10% 6%, var(--au-primary-soft), transparent 70%),
    radial-gradient(520px 360px at 94% 100%, var(--au-gold-soft), transparent 72%);
  pointer-events: none;
}

.auth-stage {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 20px;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
}

/* ── brand panel — blueprint navy ───────────────────────────── */
.auth-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(28px, 4vw, 48px);
  background:
    radial-gradient(480px 320px at 85% -10%, rgba(37, 99, 235, 0.35), transparent 70%),
    radial-gradient(420px 300px at -10% 110%, rgba(217, 147, 13, 0.22), transparent 70%),
    linear-gradient(160deg, var(--au-ink) 0%, var(--au-ink-2) 100%);
  border-radius: var(--au-radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 48px -24px rgba(11, 27, 58, 0.45);
}

/* blueprint grid — a nod to BNA's construction roots */
.auth-brand::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 48px);
  -webkit-mask-image: radial-gradient(90% 90% at 50% 40%, #000 25%, transparent 100%);
          mask-image: radial-gradient(90% 90% at 50% 40%, #000 25%, transparent 100%);
  pointer-events: none;
}

.auth-brand__watermark {
  position: absolute;
  inset-block-end: -0.14em;
  inset-inline-end: -0.06em;
  font-size: clamp(96px, 12vw, 170px);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.10);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.auth-brand__eyebrow {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #f0b53e;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.auth-brand__eyebrow::before {
  content: '';
  width: 34px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #f0b53e, transparent);
  flex: none;
}

[dir="rtl"] .auth-brand__eyebrow::before {
  background: linear-gradient(270deg, #f0b53e, transparent);
}

.auth-brand__title {
  position: relative;
  margin: 18px 0 12px;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  font-weight: 800;
  line-height: 1.18;
  color: #ffffff;
}

.auth-brand__title em {
  font-style: normal;
  color: #7ea4f7;
}

.auth-brand__lede {
  position: relative;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.85;
  max-width: 40ch;
}

.auth-perks {
  position: relative;
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.auth-perk {
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding-block: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-perk__num {
  font-size: 13px;
  font-weight: 800;
  color: #f0b53e;
  letter-spacing: 0.08em;
  flex: none;
}

.auth-perk__title {
  display: block;
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 2px;
}

.auth-perk__text {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.7;
}

/* ── form panel ─────────────────────────────────────────────── */
.auth-panel {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--au-line);
  border-radius: var(--au-radius-lg);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 18px 40px -22px rgba(11, 27, 58, 0.18);
  overflow: hidden;
}

.auth-panel::before {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--au-primary) 30%, var(--au-gold) 70%, transparent);
}

.auth-panel__title {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 800;
  color: var(--au-text);
  margin-bottom: 4px;
}

.auth-panel__hint {
  color: var(--au-text-2);
  font-size: 13.5px;
  margin-bottom: 26px;
}

.auth-shell .form-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--au-text) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  margin-bottom: 8px;
}

.auth-shell .input-required-icon { color: var(--au-gold) !important; }

.auth-shell .form-control {
  background: var(--au-field-bg) !important;
  border: 1px solid var(--au-field-line) !important;
  border-radius: var(--au-radius) !important;
  color: var(--au-text) !important;
  min-height: 48px;
  padding: 12px 16px;
  font-size: 14px;
  box-shadow: none !important;
  transition: border-color 0.2s var(--au-ease), box-shadow 0.2s var(--au-ease), background 0.2s var(--au-ease);
}

.auth-shell .form-control::placeholder { color: var(--au-text-3); }

.auth-shell .form-control:hover { border-color: #c4cedd !important; }

.auth-shell .form-control:focus {
  background: #ffffff !important;
  border-color: var(--au-primary) !important;
  box-shadow: 0 0 0 4px var(--au-primary-ring) !important;
}

.auth-shell .form-group { margin-bottom: 18px; }

.auth-shell .invalid-feedback { color: var(--au-danger); }
.auth-shell .password-error { color: var(--au-danger) !important; }

.auth-shell .password-toggle-btn .password-toggle-indicator {
  color: var(--au-text-3);
  transition: color 0.2s var(--au-ease);
}
.auth-shell .password-toggle-btn:hover .password-toggle-indicator { color: var(--au-text-2); }

/* ── intl-tel-input: RTL fix + light styling ────────────────── */
.auth-shell .iti { width: 100%; display: block; }

.auth-shell .iti__country-list {
  background: #ffffff !important;
  border: 1px solid var(--au-line) !important;
  border-radius: var(--au-radius);
  box-shadow: 0 12px 32px -12px rgba(11, 27, 58, 0.25);
  color: var(--au-text);
}
.auth-shell .iti__country.iti__highlight,
.auth-shell .iti__country:hover { background: var(--au-primary-soft) !important; }
.auth-shell .iti__dial-code { color: var(--au-text-2) !important; }

/* keep flag block at the inline start and the number LTR, both directions */
[dir="rtl"] .auth-shell .iti--allow-dropdown .iti__flag-container,
[dir="rtl"] .auth-shell .iti--show-selected-dial-code .iti__flag-container {
  right: auto !important;
  left: 0 !important;
}

[dir="rtl"] .auth-shell .iti--allow-dropdown input.iti__tel-input,
[dir="rtl"] .auth-shell .iti--allow-dropdown input.iti__tel-input[type="tel"],
[dir="rtl"] .auth-shell .iti--show-selected-dial-code input.iti__tel-input,
[dir="rtl"] .auth-shell .iti--show-selected-dial-code input.iti__tel-input[type="tel"] {
  padding-left: 92px !important;
  padding-right: 12px !important;
  direction: ltr !important;
  text-align: left !important;
}

[dir="rtl"] .auth-shell .iti__arrow {
  border-left: 3px solid transparent !important;
  border-right: 3px solid transparent !important;
}

.auth-shell input[type="email"] {
  direction: ltr !important;
}
[dir="rtl"] .auth-shell input[type="email"] { text-align: left !important; }
[dir="rtl"] .auth-shell input[type="email"]::placeholder { text-align: right; }

/* ── terms checkbox ─────────────────────────────────────────── */
.auth-shell .custom-control-label { color: var(--au-text-2); font-size: 13.5px; }
.auth-shell .custom-control-label::before {
  background: #ffffff !important;
  border: 1.5px solid #c4cedd !important;
  box-shadow: none !important;
  transition: all 0.2s var(--au-ease);
}
.auth-shell .custom-control-input:checked ~ .custom-control-label::before {
  background: var(--au-primary) !important;
  border-color: var(--au-primary) !important;
}
.auth-shell .custom-control-input:focus ~ .custom-control-label::before {
  box-shadow: 0 0 0 4px var(--au-primary-ring) !important;
}
.auth-shell .custom-control-label a {
  color: var(--au-primary) !important;
  font-weight: 600;
}
.auth-shell .custom-control-label a:hover { color: var(--au-primary-deep) !important; }

/* ── CTA ────────────────────────────────────────────────────── */
.auth-shell .auth-cta {
  min-height: 52px;
  border: none !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, var(--au-primary) 0%, var(--au-primary-deep) 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 15px;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 24px -10px rgba(37, 99, 235, 0.55);
  transition: transform 0.2s var(--au-ease), box-shadow 0.2s var(--au-ease), opacity 0.2s var(--au-ease);
}

.auth-shell .auth-cta:hover:not([disabled]) {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -10px rgba(37, 99, 235, 0.65);
}

.auth-shell .auth-cta[disabled] {
  opacity: 0.45;
  box-shadow: none;
  cursor: not-allowed;
}

/* ── divider + social + footer ──────────────────────────────── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0 16px;
  color: var(--au-text-3);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.auth-social {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.auth-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--au-line);
  transition: all 0.2s var(--au-ease);
}

.auth-social a:hover {
  border-color: var(--au-primary);
  background: var(--au-primary-soft);
  transform: translateY(-2px);
}

.auth-social img { width: 20px; height: 20px; object-fit: contain; }

.auth-panel__footer {
  margin-top: 22px;
  text-align: center;
  color: var(--au-text-2);
  font-size: 13.5px;
}

.auth-panel__footer a {
  color: var(--au-primary) !important;
  font-weight: 700;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.auth-panel__footer a:hover { color: var(--au-primary-deep) !important; }

/* ── entrance choreography ──────────────────────────────────── */
@keyframes authRise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.auth-anim {
  animation: authRise 0.55s var(--au-ease) both;
  animation-delay: calc(var(--d, 0) * 90ms);
}

@media (prefers-reduced-motion: reduce) {
  .auth-anim { animation: none; }
}

/* ── responsive ─────────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .auth-stage { grid-template-columns: 1fr; gap: 20px; }
  .auth-brand { padding: 24px; }
  .auth-brand__watermark { display: none; }
  .auth-brand__lede { max-width: none; }
  .auth-perks { display: none; }
}
