/* ==========================================================================
   auth.css — sign in and sign up.

   A split page: the photograph and the promise on the left, the form on the
   right. Heavy scrim, because the chosen image is bright and the copy sits
   over it — the crop already removes the headline band that was baked into
   the original.

   TO REMOVE: delete this file, signin.html, signup.html, and repoint the two
   header links.
   ========================================================================== */

/* ---------- the page frame ----------
   A sign-in page carries the mark and a way back, not the whole navigation:
   somebody here has one job. The mark is larger than the site header's for
   the same reason — it is the only branding on the page. */

.au-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.1rem, 2.5vw, 1.6rem) clamp(1.2rem, 3vw, 2.2rem);
}

.au-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.85rem;
  letter-spacing: -0.04em;
  color: var(--paper);
}

.au-logo__mark {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 1.55rem;
  font-weight: 700;
  transition: transform 0.5s var(--ease);
}

.au-logo:hover .au-logo__mark { transform: rotate(-8deg) scale(1.05); }
.au-logo__dot { color: var(--accent-ink); }

.au-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.25s ease;
}

.au-back:hover { color: var(--paper); }

@media (max-width: 640px) {
  .au-logo { font-size: 1.45rem; }
  .au-logo__mark { width: 40px; height: 40px; border-radius: 12px; font-size: 1.25rem; }
  .au-back span, .au-back { font-size: 0.8rem; }
}

/* the floating launchers belong on marketing pages, not here — and pinned to
   the corners they sat directly on this page's copy */
.au-page .dcta,
.au-page .dspark,
.au-page .xcta,
.au-page .totop,
.au-page .fcta { display: none !important; }

/* ---------- the split ----------
   Both halves inset from the page edge with a gap between them, so the photo
   reads as a framed object rather than bleeding off. Form first: it is the
   subject, and it lands where the eye starts. */

.au {
  display: grid;
  /* photograph first, form second — the picture sets the tone, the form takes
     the wider half because it is the thing being used */
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(0.9rem, 2vw, 1.6rem);
  padding: 0 clamp(0.9rem, 2vw, 1.6rem) clamp(0.9rem, 2vw, 1.6rem);
  min-height: calc(100vh - 132px);
}

@media (max-width: 900px) {
  .au { grid-template-columns: 1fr; }
  .au__side { display: none; }
}

/* ---------- the picture side ---------- */

.au__side {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-content: end;
  padding: clamp(1.6rem, 3.5vw, 2.8rem);
  border: 1px solid var(--line-soft);
  border-radius: 22px;
}

/* the photograph is first in the DOM and first on screen — no order juggling */

.au__ph {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../img/site/auth.webp") center / cover no-repeat;
  animation: au-drift 26s var(--ease) infinite alternate;
}

@keyframes au-drift {
  from { transform: scale(1.04); }
  to   { transform: scale(1.11); }
}

/* heavy: 48% at the top, 97% at the foot where the copy sits */
.au__side::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
    rgba(var(--ink-rgb), 0.48) 0%,
    rgba(var(--ink-rgb), 0.72) 45%,
    rgba(var(--ink-rgb), 0.97) 100%);
}

.au__side > *:not(.au__ph) { position: relative; z-index: 2; }

.au__mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.28rem;
  color: #fff;
}

.au__mark i {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--on-accent);
  font-style: normal;
  font-size: 1rem;
}

.au__side h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem);
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

.au__side p {
  margin: 0 0 1.2rem;
  max-width: 40ch;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.87);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.au__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.au__list li { display: grid; grid-template-columns: 16px 1fr; gap: 0.5rem; }

.au__list li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 0.42rem;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- the form side ---------- */

.au__form { display: grid; align-content: center; padding: clamp(1.4rem, 3vw, 2.6rem); }
.au__in { width: min(400px, 100%); margin: 0 auto; }

.au__k {
  display: inline-block;
  padding: 0.24rem 0.7rem;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.14);
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.au__form h1 {
  margin: 0.85rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.au__sub { margin: 0 0 1.5rem; font-size: 0.92rem; line-height: 1.55; color: var(--muted); }

.au__f { position: relative; margin-bottom: 0.9rem; }

.au__l {
  display: block;
  margin-bottom: 0.32rem;
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-3);
  transition: color 0.25s ease;
}

.au__f:focus-within .au__l { color: var(--accent); }

.au__i {
  width: 100%;
  min-height: 48px;
  padding: 0.8rem 0.95rem;
  border-radius: 11px;
  border: 1px solid var(--line-soft);
  background: rgba(var(--ink-rgb), 0.5);
  color: var(--paper);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.au__i::placeholder { color: var(--muted-3); }

.au__i:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(var(--ink-rgb), 0.75);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.16);
}

.au__hint { margin: 0.32rem 0 0; font-size: 0.75rem; line-height: 1.45; color: var(--muted-3); }

.au__eye {
  position: absolute;
  right: 0.55rem;
  bottom: 0.5rem;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--muted-3);
  cursor: pointer;
  transition: color 0.25s ease;
}

.au__eye:hover { color: var(--paper); }
.au__eye svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.au__opts { display: flex; flex-wrap: wrap; gap: 0.4rem; }

.au__o {
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.au__o:hover { color: var(--paper); border-color: var(--c, var(--accent)); }
.au__o.is-on { background: var(--c, var(--accent)); border-color: var(--c, var(--accent)); color: #0b0d11; }

.au__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.2rem 0 1.2rem;
  font-size: 0.83rem;
  color: var(--muted-2);
}

.au__row label { display: flex; align-items: center; gap: 0.45rem; cursor: pointer; }
.au__row a { color: var(--accent-ink); }

.au__form .btn { width: 100%; justify-content: center; margin-bottom: 1rem; }
.au__alt { font-size: 0.86rem; color: var(--muted-2); text-align: center; }
.au__alt a { color: var(--accent-ink); font-weight: 600; }
.au__legal { margin-top: 1.3rem; font-size: 0.74rem; line-height: 1.5; color: var(--muted-3); }
.au__legal a { color: var(--muted-2); text-decoration: underline; }

/* said plainly rather than faking a success */
.au__note {
  margin: 0 0 1.2rem;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(var(--p4-rgb), 0.45);
  background: rgba(var(--p4-rgb), 0.08);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--p4);
}

.au__err {
  margin: 0 0 0.9rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(var(--p4-rgb), 0.45);
  background: rgba(var(--p4-rgb), 0.09);
  font-size: 0.82rem;
  color: var(--p4);
}

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

/* ==========================================================================
   The form side.

   It was a form on flat ground with a photograph beside it, and read as empty.
   Two layers behind it now: a slow aurora wash at the back and the orbit field
   in front of it — the same field that sits behind the platform dial and the
   Experience popup, so this page belongs to the same family rather than
   introducing another idea.

   Layer order matters: aurora 0, orbit 2, form 3. The rings pass in front of
   the wash and behind the inputs.
   ========================================================================== */

.au__form { position: relative; isolation: isolate; overflow: hidden; border-radius: 22px; }
.au__in { position: relative; z-index: 3; }

.au__aur, .au__orb { position: absolute; inset: 0; pointer-events: none; }

/* ---- the wash ---- */

.au__aur { z-index: 0; }

.au__aur span { position: absolute; border-radius: 50%; filter: blur(50px); }

.au__aur span:nth-child(1) {
  width: 300px; height: 300px; left: -12%; top: 6%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.26), transparent 70%);
  animation: au-aur 15s var(--ease) infinite;
}

.au__aur span:nth-child(2) {
  width: 260px; height: 260px; right: -10%; bottom: 2%;
  background: radial-gradient(circle, rgba(var(--p4-rgb), 0.22), transparent 70%);
  animation: au-aur 19s var(--ease) infinite reverse;
}

.au__aur span:nth-child(3) {
  width: 230px; height: 230px; left: 44%; bottom: -12%;
  background: radial-gradient(circle, rgba(var(--p6-rgb), 0.2), transparent 70%);
  animation: au-aur 23s var(--ease) infinite;
}

@keyframes au-aur {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
  50%      { transform: translate(30px, -26px) scale(1.18); opacity: 1; }
}

/* ---- the rings ---- */

.au__orb { z-index: 2; }

.au__orb span {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  border-radius: 50%;
  border: 1px solid rgba(var(--accent-rgb), 0.14);
}

.au__orb span:nth-child(1) { width: 280px; height: 280px; animation: au-orb 18s linear infinite; }
.au__orb span:nth-child(2) { width: 420px; height: 420px; animation: au-orb 27s linear infinite reverse; }
.au__orb span:nth-child(3) { width: 580px; height: 580px; animation: au-orb 38s linear infinite; }

.au__orb span::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px 2px rgba(var(--accent-rgb), 0.8);
}

@keyframes au-orb { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .au__aur span, .au__orb span { animation: none; }
}
