/* ══════════════════════════════════════════════════════════════
   AUTH — "Atelier Spread"
   Light editorial split: jewelry hero (left) + Apple-grade
   progressive form (right). Cream throughout, no dark panel.
═══════════════════════════════════════════════════════════════ */

:root {
  --aa-cream:       #FAFAFA;
  --aa-blush:       #FAFAFA;
  --aa-paper:       #FFFFFF;
  --aa-ink:         #141414;
  --aa-muted:       #4A4A4A;
  --aa-faint:       #8A8A8A;
  --aa-line:        #E0E0E0;
  --aa-line-soft:   #E0E0E0;
  --aa-fill:        #FAFAFA;
  --aa-brand:       #000000;
  --aa-brand-2:     #4A4A4A;
  --aa-brand-3:     #E0E0E0;
  --aa-brand-soft:  rgba(74,74,74,0.15);
  --aa-brand-ring:  rgba(74,74,74,0.22);
  --aa-gold:        #4A4A4A;
  --aa-error:       #B53737;
  --aa-spring:      cubic-bezier(.34,1.56,.64,1);
  --aa-ease:        cubic-bezier(.2,.8,.2,1);
}

body.auth-body {
  background: var(--aa-cream);
  color: var(--aa-ink);
  font-family: 'Jost', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
body.auth-body .scroll-progress-line,
body.auth-body .site-footer { display: none; }

/* ──────────────────────────────────────────────────────────────
   STAGE — fixed split grid, locked to viewport
─────────────────────────────────────────────────────────────── */
.aa-stage {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  overflow: hidden;
}

/* ──────────────────────────────────────────────────────────────
   ASIDE — editorial jewelry hero
─────────────────────────────────────────────────────────────── */
.aa-aside {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--aa-blush);
}

/* Image stack — fades + ken-burns */
.aa-aside-stage { position: absolute; inset: 0; z-index: 0; }
.aa-aside-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.4s var(--aa-ease);
  will-change: opacity, transform;
}
.aa-aside-img.is-active {
  opacity: 1;
  animation: aa-kenburns 14s ease-in-out infinite alternate;
}
@keyframes aa-kenburns {
  from { transform: scale(1.04) translate(0, 0); }
  to   { transform: scale(1.12) translate(-1%, -1.5%); }
}

/* Warm tint — readable text without darkening the brand */
.aa-aside::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(250,250,250,0.25) 0%, rgba(250,250,250,0.10) 30%, rgba(0,0,0,0.18) 80%, rgba(0,0,0,0.42) 100%),
    radial-gradient(60% 50% at 20% 0%, rgba(250,250,250,0.30), transparent 70%);
  pointer-events: none;
}

/* Top-left vertical brand mark + numbered edition */
.aa-aside-top {
  position: absolute;
  z-index: 3;
  top: clamp(28px, 4vh, 44px);
  left: clamp(28px, 3.5vw, 48px);
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--aa-paper);
}
.aa-aside-logo {
  display: inline-flex;
  align-items: center;
}
.aa-aside-logo img {
  height: 88px;
  width: auto;
  
  opacity: 1;
}

.aa-aside-edition {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.10);
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.aa-aside-edition::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--aa-brand-3);
  box-shadow: 0 0 0 3px rgba(224,224,224,0.30);
}

/* Editorial pull-quote — anchored to bottom-left */
.aa-aside-quote-wrap {
  position: absolute;
  z-index: 3;
  left: clamp(28px, 3.5vw, 48px);
  right: clamp(28px, 3.5vw, 48px);
  bottom: clamp(36px, 5vh, 64px);
  color: #fff;
}
.aa-aside-quote {
  position: relative;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.18;
  letter-spacing: -0.005em;
  margin-bottom: 18px;
  max-width: 28ch;
  text-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.aa-aside-quote::before {
  content: '\201C';
  position: absolute;
  left: -0.25em;
  top: -0.45em;
  font-size: 2.6em;
  line-height: 0.5;
  color: var(--aa-brand-3);
  opacity: 0.7;
}
.aa-aside-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.aa-aside-meta::before {
  content: '';
  width: 28px;
  height: 1px;
  background: rgba(255,255,255,0.6);
}

/* Right side vertical rule with rotated label */
.aa-aside-rail {
  position: absolute;
  z-index: 3;
  right: clamp(22px, 2.4vw, 36px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  color: rgba(255,255,255,0.78);
}
.aa-aside-rail-line {
  width: 1px;
  height: 56px;
  background: rgba(255,255,255,0.4);
}
.aa-aside-rail-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
}

/* ──────────────────────────────────────────────────────────────
   MAIN — form panel
─────────────────────────────────────────────────────────────── */
.aa-main {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 3vh, 36px) clamp(20px, 4vw, 48px) clamp(18px, 3vh, 30px);
  background: var(--aa-cream);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.20) transparent;
}
.aa-main::-webkit-scrollbar { width: 6px; }
.aa-main::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.18); border-radius: 999px; }

/* Top bar */
.aa-main-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(16px, 3vh, 32px);
}
.aa-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--aa-line-soft);
  color: var(--aa-ink);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: background 0.3s var(--aa-ease), border-color 0.3s var(--aa-ease), transform 0.3s var(--aa-ease);
}
.aa-back svg {
  width: 14px; height: 14px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  transition: transform 0.3s var(--aa-ease);
}
.aa-back:hover {
  background: #fff;
  border-color: rgba(74,74,74,0.4);
  color: var(--aa-brand);
  transform: translateY(-1px);
}
.aa-back:hover svg { transform: translateX(-3px); }

.aa-switch {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--aa-muted);
}
.aa-switch a {
  color: var(--aa-brand-2);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.25s;
}
.aa-switch a:hover {
  color: var(--aa-brand);
  border-bottom-color: currentColor;
}

/* ──────────────────────────────────────────────────────────────
   FORM COLUMN — Apple-grade tight column
─────────────────────────────────────────────────────────────── */
.aa-col {
  flex: 1;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Header */
.aa-header {
  margin-bottom: clamp(16px, 2.5vh, 26px);
  opacity: 0;
  transform: translateY(8px);
  animation: aa-rise 0.7s 0.05s var(--aa-ease) forwards;
}
@keyframes aa-rise {
  to { opacity: 1; transform: translateY(0); }
}
.aa-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: clamp(32px, 3.8vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--aa-ink);
  margin-bottom: 10px;
}
.aa-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--aa-brand);
}
.aa-sub {
  font-size: 15px;
  line-height: 1.55;
  color: var(--aa-muted);
}
.aa-link {
  color: var(--aa-brand-2);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s var(--aa-ease);
}
.aa-link:hover { color: var(--aa-brand); }

/* Email chip (login step 2) */
.aa-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 6px 6px 14px;
  background: var(--aa-fill);
  border: 1px solid var(--aa-line-soft);
  border-radius: 999px;
  font-size: 13px;
  color: var(--aa-ink);
  max-width: fit-content;
  opacity: 0;
  transform: translateY(-6px);
  animation: aa-rise 0.5s 0.10s var(--aa-ease) forwards;
}
.aa-chip-back {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,0.06);
  border: none;
  color: var(--aa-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.aa-chip-back:hover { background: rgba(0,0,0,0.10); color: var(--aa-ink); }
.aa-chip-back svg {
  width: 12px; height: 12px;
  fill: none; stroke: currentColor; stroke-width: 2;
}
.aa-chip-email {
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ──────────────────────────────────────────────────────────────
   Inline message banner — sits above the form, no popup
─────────────────────────────────────────────────────────────── */
.aa-alert {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 14px 13px 18px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--aa-paper);
  border: 1px solid var(--aa-line-soft);
  box-shadow: 0 12px 30px -18px rgba(0, 0, 0,.4);
  overflow: hidden;
  animation: aaAlertIn .42s var(--aa-spring) both;
}
/* Left accent rail — colour set per variant */
.aa-alert::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
}
.aa-alert.is-leaving {
  animation: aaAlertOut .26s var(--aa-ease) both;
}

.aa-alert-ico {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.aa-alert-ico svg { width: 18px; height: 18px; }

.aa-alert-body { flex: 1; min-width: 0; }
.aa-alert-title {
  margin: 1px 0 2px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .005em;
  color: var(--aa-ink);
}
.aa-alert-msg {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--aa-muted);
}
.aa-alert-redir {
  display: inline-block;
  margin-left: 2px;
  color: var(--aa-brand);
  font-weight: 500;
}

.aa-alert-x {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  margin: -2px -2px 0 0;
  background: none;
  border: 0;
  border-radius: 7px;
  color: var(--aa-faint);
  cursor: pointer;
  transition: color .2s var(--aa-ease), background .2s var(--aa-ease);
}
.aa-alert-x:hover { color: var(--aa-ink); background: var(--aa-fill); }
.aa-alert-x svg { width: 14px; height: 14px; }

/* Error variant — soft red */
.aa-alert--error::before { background: var(--aa-error); }
.aa-alert--error .aa-alert-ico {
  background: rgba(181, 55, 55, .10);
  color: var(--aa-error);
}

/* Success variant — house green */
.aa-alert--success::before { background: var(--aa-brand-2); }
.aa-alert--success .aa-alert-ico {
  background: var(--aa-brand-soft);
  color: var(--aa-brand);
}

@keyframes aaAlertIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes aaAlertOut {
  from { opacity: 1; transform: translateY(0); max-height: 120px; }
  to   { opacity: 0; transform: translateY(-8px); max-height: 0; margin-bottom: 0; padding-top: 0; padding-bottom: 0; }
}

/* Form */
.aa-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  transform: translateY(8px);
  animation: aa-rise 0.7s 0.15s var(--aa-ease) forwards;
}
.aa-steps { position: relative; display: grid; }
.aa-step {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: opacity 0.35s var(--aa-ease), transform 0.4s var(--aa-ease);
}
.aa-step[hidden] { display: none; }
.aa-step.is-leaving-left  { opacity: 0; transform: translateX(-24px); }
.aa-step.is-leaving-right { opacity: 0; transform: translateX(24px); }
.aa-step.is-entering-from-right { opacity: 0; transform: translateX(24px); }
.aa-step.is-entering-from-left  { opacity: 0; transform: translateX(-24px); }
.aa-step.is-active { opacity: 1; transform: translateX(0); }

/* Field */
.aa-field {
  position: relative;
  display: flex;
  align-items: stretch;
  background: var(--aa-paper);
  border: 1px solid var(--aa-line);
  border-radius: 12px;
  transition:
    border-color 0.25s var(--aa-ease),
    box-shadow   0.3s  var(--aa-ease),
    background   0.25s var(--aa-ease);
}
.aa-field:hover { border-color: #E0E0E0; background: #fff; }
.aa-field:focus-within {
  border-color: var(--aa-brand-2);
  background: #fff;
  box-shadow: 0 0 0 4px var(--aa-brand-ring);
}
.aa-field input {
  flex: 1;
  width: 100%;
  height: 54px;
  padding: 18px 4px 6px 18px;
  background: transparent;
  border: none;
  color: var(--aa-ink);
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.2;
  outline: none;
  min-width: 0;
}
.aa-field label {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  color: var(--aa-faint);
  pointer-events: none;
  transition: all 0.22s var(--aa-ease);
  background: var(--aa-paper);
  padding: 0 4px;
}
.aa-field:hover label { background: #fff; }
.aa-field:focus-within label { background: #fff; }
.aa-field input:focus + label,
.aa-field input:not(:placeholder-shown) + label {
  top: 0;
  transform: translateY(-50%);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--aa-brand);
  font-weight: 600;
}

/* ── Client-side validation — invalid field state ── */
.aa-field.is-invalid {
  border-color: var(--aa-error);
  background: rgba(181, 55, 55, .035);
}
.aa-field.is-invalid:hover { border-color: var(--aa-error); }
.aa-field.is-invalid:focus-within {
  border-color: var(--aa-error);
  box-shadow: 0 0 0 4px rgba(181, 55, 55, .14);
}
.aa-field.is-invalid label,
.aa-field.is-invalid input:focus + label,
.aa-field.is-invalid input:not(:placeholder-shown) + label { color: var(--aa-error); }

.aa-check.is-invalid .aa-check-box { border-color: var(--aa-error); }

.aa-field-msg {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 7px 2px 0;
  max-height: 0;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.4;
  color: var(--aa-error);
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity .2s var(--aa-ease), transform .2s var(--aa-ease), max-height .2s var(--aa-ease), margin-top .2s var(--aa-ease);
}
.aa-field-msg.is-shown {
  max-height: 40px;
  opacity: 1;
  transform: translateY(0);
}
.aa-field-msg svg { width: 13px; height: 13px; flex-shrink: 0; }

.aa-field input:-webkit-autofill {
  -webkit-text-fill-color: var(--aa-ink);
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  caret-color: var(--aa-ink);
  transition: background-color 9999s ease-out;
}

/* Arrow CTA */
.aa-field-cta {
  align-self: center;
  margin: 0 5px 0 4px;
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--aa-fill);
  color: var(--aa-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background 0.3s var(--aa-ease),
    color      0.3s var(--aa-ease),
    transform  0.4s var(--aa-spring),
    box-shadow 0.3s var(--aa-ease);
}
.aa-field-cta svg {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 2.2;
}
.aa-field-cta.is-ready {
  background: linear-gradient(135deg, var(--aa-brand-2), var(--aa-brand));
  color: #fff;
  box-shadow: 0 8px 18px -6px rgba(0,0,0,0.45);
}
.aa-field-cta.is-ready:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 22px -6px rgba(0,0,0,0.55);
}
.aa-field-cta.is-ready:active { transform: scale(0.95); }

/* Password show/hide */
.aa-pwd-toggle {
  align-self: center;
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  border: none;
  background: transparent;
  color: var(--aa-faint);
  cursor: pointer;
  border-radius: 8px;
  flex-shrink: 0;
  transition: background 0.2s var(--aa-ease), color 0.2s var(--aa-ease);
}
.aa-pwd-toggle:hover { background: var(--aa-fill); color: var(--aa-ink); }
.aa-pwd-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.aa-pwd-toggle .aa-eye-off { display: none; }
.aa-pwd-toggle.is-on .aa-eye { display: none; }
.aa-pwd-toggle.is-on .aa-eye-off { display: block; }

/* Helper row */
.aa-helper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 4px;
  margin-top: 2px;
  flex-wrap: wrap;
  font-size: 13px;
}
.aa-helper a, .aa-helper .aa-link {
  color: var(--aa-brand-2);
  text-decoration: none;
  font-weight: 500;
}
.aa-helper a:hover { color: var(--aa-brand); }

/* Checkbox */
.aa-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  color: var(--aa-muted);
}
.aa-check input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.aa-check-box {
  width: 16px; height: 16px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid var(--aa-line);
  display: grid;
  place-items: center;
  color: transparent;
  flex-shrink: 0;
  transition: all 0.2s var(--aa-ease);
}
.aa-check-box svg {
  width: 11px; height: 11px;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.18s, transform 0.22s var(--aa-spring);
}
.aa-check:hover .aa-check-box { border-color: var(--aa-brand-2); }
.aa-check input:focus-visible + .aa-check-box {
  box-shadow: 0 0 0 4px var(--aa-brand-ring);
  border-color: var(--aa-brand-2);
}
.aa-check input:checked + .aa-check-box {
  background: var(--aa-brand-2);
  border-color: var(--aa-brand-2);
  color: #fff;
}
.aa-check input:checked + .aa-check-box svg {
  opacity: 1; transform: scale(1);
}
.aa-check--terms {
  align-items: flex-start;
  padding: 4px;
  font-size: 13px;
  line-height: 1.5;
}
.aa-check--terms .aa-check-box { margin-top: 3px; }

/* Strength meter */
.aa-strength {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 4px;
  margin-top: -2px;
}
.aa-strength-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.aa-strength-bars span {
  height: 3px;
  background: var(--aa-line-soft);
  border-radius: 999px;
  transition: background 0.3s var(--aa-ease);
}
.aa-strength.lvl-1 .aa-strength-bars span:nth-child(-n+1) { background: #d65454; }
.aa-strength.lvl-2 .aa-strength-bars span:nth-child(-n+2) { background: #e8a23b; }
.aa-strength.lvl-3 .aa-strength-bars span:nth-child(-n+3) { background: var(--aa-gold); }
.aa-strength.lvl-4 .aa-strength-bars span                 { background: var(--aa-brand-2); }
.aa-strength-label {
  font-size: 12px;
  font-weight: 500;
  color: #4A4A4A;
  letter-spacing: 0.02em;
  background: transparent;
}
.aa-strength.lvl-1 .aa-strength-label { color: #b03b3b; }
.aa-strength.lvl-2 .aa-strength-label { color: #9a6b15; }
.aa-strength.lvl-3 .aa-strength-label { color: #826413; }
.aa-strength.lvl-4 .aa-strength-label { color: var(--aa-brand-2); font-weight: 600; }

/* Submit */
.aa-submit {
  position: relative;
  height: 52px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--aa-brand-2) 0%, var(--aa-brand) 100%);
  color: #fff;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s var(--aa-spring), box-shadow 0.25s var(--aa-ease), filter 0.25s var(--aa-ease);
  box-shadow:
    0 10px 22px -6px rgba(0,0,0,0.40),
    inset 0 1px 0 rgba(255,255,255,0.22);
  margin-top: 4px;
}
.aa-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.20) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.7s var(--aa-ease);
}
.aa-submit:hover {
  transform: translateY(-1px);
  box-shadow:
    0 16px 30px -6px rgba(0,0,0,0.50),
    inset 0 1px 0 rgba(255,255,255,0.22);
  filter: brightness(1.04);
}
.aa-submit:hover::before { transform: translateX(100%); }
.aa-submit:active { transform: scale(0.97); }
.aa-submit > * { position: relative; z-index: 1; }
.aa-submit svg {
  width: 14px; height: 14px;
  fill: none; stroke: currentColor; stroke-width: 2.4;
}
.aa-submit[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; filter: grayscale(0.3); }

/* Divider */
.aa-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px 0 10px;
  color: var(--aa-faint);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.aa-divider::before,
.aa-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--aa-line-soft);
}

/* Social */
.aa-social {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.aa-soc {
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--aa-line);
  border-radius: 12px;
  color: var(--aa-ink);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.25s var(--aa-ease),
    border-color 0.25s var(--aa-ease),
    transform 0.3s var(--aa-spring);
}
.aa-soc:hover {
  background: var(--aa-paper);
  border-color: #E0E0E0;
  transform: translateY(-1px);
}
.aa-soc:active { transform: scale(0.98); }
.aa-soc svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ──────────────────────────────────────────────────────────────
   TRUST STRIP — three small badges below the form
─────────────────────────────────────────────────────────────── */
.aa-trust {
  margin-top: clamp(14px, 2.5vh, 24px);
  padding-top: 16px;
  border-top: 1px solid var(--aa-line-soft);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  opacity: 0;
  animation: aa-rise 0.7s 0.35s var(--aa-ease) forwards;
}
.aa-trust-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.aa-trust-ico {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--aa-brand-soft);
  color: var(--aa-brand);
  margin-bottom: 4px;
}
.aa-trust-ico svg {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 1.8;
}
.aa-trust-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--aa-ink);
  letter-spacing: 0.005em;
}
.aa-trust-sub {
  font-size: 11px;
  color: var(--aa-muted);
  line-height: 1.4;
}

/* Fineprint */
.aa-fineprint {
  margin-top: 14px;
  font-size: 11px;
  color: var(--aa-faint);
  line-height: 1.6;
  text-align: center;
}
.aa-fineprint a {
  color: var(--aa-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--aa-line-soft);
  margin: 0 6px;
}
.aa-fineprint a:hover { color: var(--aa-brand-2); border-bottom-color: currentColor; }

/* ──────────────────────────────────────────────────────────────
   HEIGHT-AWARE COMPACTING — keep everything in one viewport
─────────────────────────────────────────────────────────────── */
@media (min-width: 981px) and (max-height: 820px) {
  .aa-main { padding-top: 18px; padding-bottom: 14px; }
  .aa-main-top { margin-bottom: 14px; }
  .aa-header { margin-bottom: 14px; }
  .aa-title { font-size: clamp(28px, 3.2vw, 38px); margin-bottom: 8px; }
  .aa-sub { font-size: 14px; }
  .aa-form { gap: 10px; }
  .aa-field input { height: 50px; padding-top: 16px; padding-bottom: 4px; font-size: 15px; }
  .aa-submit { height: 48px; font-size: 14px; }
  .aa-divider { margin: 14px 0 9px; font-size: 10px; }
  .aa-soc { height: 42px; font-size: 13px; }
  .aa-trust { margin-top: 12px; padding-top: 12px; gap: 10px; }
  .aa-trust-ico { width: 26px; height: 26px; margin-bottom: 2px; }
  .aa-trust-ico svg { width: 14px; height: 14px; }
  .aa-trust-title { font-size: 11.5px; }
  .aa-trust-sub { font-size: 10.5px; }
  .aa-fineprint { margin-top: 10px; font-size: 10.5px; }
}

@media (min-width: 981px) and (max-height: 720px) {
  .aa-main { padding-top: 14px; padding-bottom: 12px; }
  .aa-main-top { margin-bottom: 10px; }
  .aa-header { margin-bottom: 10px; }
  .aa-title { font-size: 26px; }
  .aa-sub { font-size: 13px; line-height: 1.45; }
  .aa-form { gap: 8px; }
  .aa-field input { height: 46px; padding-top: 14px; font-size: 14.5px; }
  .aa-submit { height: 44px; font-size: 13.5px; }
  .aa-divider { margin: 10px 0 7px; }
  .aa-soc { height: 38px; font-size: 12.5px; }
  /* Trust strip last; compact icons + hide subs to fit shortest screens */
  .aa-trust { margin-top: 10px; padding-top: 10px; }
  .aa-trust-sub { display: none; }
  .aa-trust-item { flex-direction: row; align-items: center; gap: 8px; }
  .aa-trust-ico { margin-bottom: 0; }
  .aa-fineprint { display: none; }
}

/* ──────────────────────────────────────────────────────────────
   RESPONSIVE
─────────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  body.auth-body { overflow: auto; height: auto; min-height: 100vh; }
  .aa-stage { height: auto; min-height: 100vh; overflow: visible;
              grid-template-columns: 1fr; grid-template-rows: 32vh 1fr; }
  .aa-main { overflow: visible; }
  .aa-aside { min-height: 220px; }
  .aa-aside-rail { display: none; }
  .aa-aside-quote-wrap { bottom: 24px; right: 24px; left: 24px; }
  .aa-aside-quote { font-size: 18px; max-width: 100%; margin-bottom: 10px; }
  .aa-aside-meta { font-size: 10px; letter-spacing: 0.18em; }
  .aa-aside-top { top: 22px; left: 22px; }
  .aa-aside-logo img { height: 64px; }
  .aa-aside-edition { font-size: 9px; padding: 5px 10px; letter-spacing: 0.18em; }

  .aa-main { padding: 28px 22px 32px; }
  .aa-main-top { margin-bottom: 24px; }
  .aa-col { justify-content: flex-start; }
  .aa-header { margin-bottom: 22px; }
}

@media (max-width: 560px) {
  .aa-stage { grid-template-rows: 26vh 1fr; }
  .aa-aside { min-height: 180px; }
  .aa-aside-quote { font-size: 16px; }
  .aa-title { font-size: 32px; }
  .aa-social { grid-template-columns: 1fr; }
  .aa-trust { grid-template-columns: 1fr; gap: 12px; }
  .aa-trust-item { flex-direction: row; align-items: center; gap: 10px; }
  .aa-trust-ico { margin-bottom: 0; }
}

@media (max-width: 380px) {
  .aa-title { font-size: 28px; }
  .aa-main { padding: 22px 18px 28px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .aa-aside-img,
  .aa-header, .aa-form, .aa-trust, .aa-chip {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
