/* ==========================================================
   Log in: form on paper white, the brand on a bright blue panel
   with the light version of the pricing card's flowing gradient.
   ========================================================== */
.auth { background: var(--white); }
.au { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: 100vh; min-height: 100dvh; }

/* ---------- Form side ---------- */
.au-main { display: flex; flex-direction: column; padding: 28px 40px 24px; }
.au-logo { align-self: flex-start; }
.au-logo:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: 10px; }

.au-box { width: 100%; max-width: 380px; margin: auto; padding: 48px 0; }
.au-h { margin: 0; font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.15; }
.au-sub { margin: 10px 0 28px; color: var(--ink-600); font-size: 15px; line-height: 1.5; text-wrap: pretty; }

.au-sso { display: grid; gap: 10px; }
.au-sso-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 44px; border-radius: var(--r-md);
  background: var(--white); color: var(--ink-950); font-size: 15px; font-weight: 500;
  box-shadow: 0 0 0 1px var(--ink-200), 0 1px 2px rgba(16,24,48,.05);
  transition: background-color .15s ease, box-shadow .15s ease;
}
.au-sso-btn svg { width: 18px; height: 18px; }
.au-sso-btn:hover { background: var(--ink-50); }
.au-sso-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.au-or { display: flex; align-items: center; gap: 12px; margin: 24px 0; color: var(--ink-500); font-size: 13px; }
.au-or::before, .au-or::after { content: ""; flex: 1; height: 1px; background: var(--ink-150); }

.au-form { display: grid; gap: 16px; }
.au-field { display: grid; gap: 7px; }
.au-field label, .au-lrow label { font-size: 14px; font-weight: 500; color: var(--ink-900); }
.au-lrow { display: flex; justify-content: space-between; align-items: baseline; }
.au-field input {
  width: 100%; height: 44px; padding: 0 14px; border: 0; border-radius: var(--r-md);
  font: inherit; font-size: 15px; color: var(--ink-950); background: var(--white);
  box-shadow: 0 0 0 1px var(--ink-200);
  transition: box-shadow .15s ease;
}
.au-field input::placeholder { color: var(--ink-500); }
.au-field input:hover { box-shadow: 0 0 0 1px var(--ink-300); }
.au-field input:focus { outline: none; box-shadow: 0 0 0 1px var(--primary), 0 0 0 4px var(--cobalt-100); }
.au-field input[aria-invalid="true"] { box-shadow: 0 0 0 1px #D93042, 0 0 0 4px #FFE4E7; }
.au-err { margin: 0; font-size: 13px; color: #B4232F; }
.au-pw { position: relative; }
.au-pw input { padding-right: 46px; }
.au-eye { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; color: var(--ink-500); }
.au-eye svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.au-eye[aria-pressed="true"] { color: var(--ink-950); }
.au-eye:hover { background: var(--ink-50); }
.au-eye:focus-visible { outline: 2px solid var(--primary); outline-offset: 0; }

.au-check { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ink-700, var(--ink-600)); cursor: pointer; }
.au-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--ink-950); }

.au-submit { --h: 46px; width: 100%; font-size: 15px; margin-top: 4px; }
.au-submit[aria-busy="true"] { pointer-events: none; opacity: .8; }
.au-submit[aria-busy="true"] span::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; vertical-align: -2px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: auSpin .7s linear infinite; }
@keyframes auSpin { to { transform: rotate(360deg); } }
.au-status { margin: 0; padding: 12px 14px; border-radius: var(--r-md); background: var(--ink-50); box-shadow: inset 0 0 0 1px var(--ink-150); font-size: 14px; color: var(--ink-800); line-height: 1.45; }

.au-link { color: var(--cobalt-600); font-weight: 500; font-size: 14px; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color .15s; }
.au-link:hover { text-decoration-color: currentColor; }
.au-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 3px; }
.au-alt { margin: 24px 0 0; font-size: 14px; color: var(--ink-600); }

.au-foot { display: flex; gap: 18px; font-size: 13px; color: var(--ink-500); }
.au-foot a:hover { color: var(--ink-950); }

/* ---------- Brand side: the light flowing gradient ---------- */
.au-side {
  position: relative; isolation: isolate; overflow: hidden;
  margin: 12px; border-radius: 24px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 36px;
  padding: 56px;
  /* first paint (and no-WebGL fallback): a still frame of the light palette,
     bright folds up top, the deeper royal blue low where the quote sits */
  background:
    radial-gradient(90% 60% at 80% 10%, rgba(234,241,255,.75), rgba(234,241,255,0) 60%),
    linear-gradient(170deg, #6E9CFF 0%, #2F6BFF 48%, #1F4FD8 78%, #1843BD 100%);
  color: #fff;
}
.au-flow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: 0; transition: opacity .9s ease; pointer-events: none; }
.au-flow.is-live { opacity: 1; }
.au-ribbon { z-index: -1; }
.au-ribbon g.r-body { filter: drop-shadow(0 20px 40px rgba(0,0,0,.5)); }
.au-quote { margin: 0; max-width: 34ch; }
.au-quote blockquote { margin: 0; font-family: var(--font-display); font-size: 26px; font-weight: 500; letter-spacing: -0.025em; line-height: 1.3; color: #fff; text-wrap: pretty; }
.au-quote figcaption { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.au-quote .av { --s: 40px; box-shadow: 0 0 0 2px rgba(255,255,255,.55); }
.au-quote b { display: block; font-weight: 500; color: #fff; }
.au-quote small { display: block; font-size: 13.5px; color: rgba(255,255,255,.86); }
.au-portals { padding-top: 24px; border-top: 1px solid rgba(255,255,255,.28); }
.au-portals p { margin: 0 0 14px; font-size: 13.5px; color: rgba(255,255,255,.86); }
.au-coins { display: flex; align-items: center; }
.au-coin {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: radial-gradient(120% 90% at 30% 15%, color-mix(in srgb, var(--c) 45%, white), var(--c) 50%, color-mix(in srgb, var(--c) 70%, black));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 0 0 2.5px #fff, 0 6px 12px -4px rgba(10,30,110,.45);
}
.au-coin + .au-coin { margin-left: -6px; }
.au-coin svg { width: 18px; height: 18px; fill: currentColor; }
.au-more { margin-left: 12px; font-size: 13.5px; font-weight: 500; color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 959px) {
  .au { grid-template-columns: minmax(0, 1fr); }
  .au-side { display: none; }
}
@media (max-width: 479px) {
  .au-main { padding: 20px 16px; }
  .au-box { padding: 36px 0; }
  .au-h { font-size: 26px; }
  .au-foot { flex-wrap: wrap; gap: 8px 16px; }
}
