/* ============================================================
   Sign-in screen.

   The only place in the app with decorative motion. Working screens stay
   still — but the sign-in is a landing moment, and a slow aurora costs
   nothing (GPU-composited transforms, no JS, no external assets).
   ============================================================ */

.auth-body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--c-bg);
  display: block;
}

.auth-split {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ---------- brand panel ---------- */

.auth-aside { display: none; }

.auth-aside__aurora,
.auth-aside__grid { position: absolute; inset: 0; }

/* Three soft colour fields drifting past each other. Large blur, low
   opacity — it should read as light, never as shapes. */
.auth-aside__aurora {
  background:
    radial-gradient(38% 46% at 22% 28%, #3b82f6 0%, transparent 68%),
    radial-gradient(34% 42% at 76% 34%, #06b6d4 0%, transparent 66%),
    radial-gradient(44% 40% at 52% 78%, #6366f1 0%, transparent 70%);
  filter: blur(46px) saturate(125%);
  opacity: .5;
  animation: drift 26s var(--ease) infinite alternate;
  will-change: transform;
}

@keyframes drift {
  0%   { transform: translate3d(-3%, -2%, 0) scale(1.06); }
  50%  { transform: translate3d(3%, 3%, 0) scale(1.14); }
  100% { transform: translate3d(-2%, 4%, 0) scale(1.08); }
}

/* A faint grid, so the panel reads as a surface rather than a gradient. */
.auth-aside__grid {
  background-image:
    linear-gradient(to right, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(120% 100% at 30% 20%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 100% at 30% 20%, #000 20%, transparent 78%);
}

.auth-aside__content {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: var(--s-7);
  max-width: 480px;
  color: #f2f6fb;
}

.auth-aside__mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border-radius: 13px;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(8px);
  font-size: .85rem; font-weight: 700; letter-spacing: -.02em;
  margin-bottom: var(--s-5);
}

.auth-aside__title {
  font-size: 2.3rem;
  line-height: 1.14;
  font-weight: 640;
  letter-spacing: -0.035em;
  margin: 0 0 var(--s-3);
  color: #fff;
}

.auth-aside__sub {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(242, 246, 251, .74);
  margin: 0 0 var(--s-6);
}

.auth-aside__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.auth-aside__list li {
  display: flex; align-items: center; gap: var(--s-3);
  font-size: .92rem;
  color: rgba(242, 246, 251, .88);
}
.auth-aside__list .icon {
  width: 32px; height: 32px; flex: none;
  padding: 7px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .16);
  stroke-width: 1.8;
}

/* Entrance — each element a beat behind the last. */
.auth-aside__mark,
.auth-aside__title,
.auth-aside__sub,
.auth-aside__list li { animation: auth-in 620ms var(--ease) both; }
.auth-aside__title    { animation-delay: 70ms; }
.auth-aside__sub      { animation-delay: 130ms; }
.auth-aside__list li:nth-child(1) { animation-delay: 200ms; }
.auth-aside__list li:nth-child(2) { animation-delay: 260ms; }
.auth-aside__list li:nth-child(3) { animation-delay: 320ms; }

@keyframes auth-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

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

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-5);
}

.auth-form {
  width: 100%;
  max-width: 380px;
  animation: auth-in 520ms var(--ease) both;
  animation-delay: 90ms;
}

/* The form's own card should feel like paper, not a floating panel. */
.auth-form .card {
  padding: var(--s-6) var(--s-5);
  box-shadow: var(--sh-2);
  animation: none;
}
.auth-form .card:hover { box-shadow: var(--sh-2); }

.auth-form h1 {
  font-size: 1.45rem;
  margin-bottom: var(--s-2);
}
.auth-form .auth-lede {
  color: var(--c-text-muted);
  font-size: .92rem;
  margin-bottom: var(--s-5);
}

/* ---------- Google sign-in ---------- */

/* Google's brand guidelines want a neutral surface and their own mark, not an
   accent-coloured button, so this deliberately breaks from .btn's palette. */
.btn--google {
  width: 100%;
  justify-content: center;
  gap: var(--s-3);
  padding: .78rem 1rem;
  font-size: .96rem;
  background: var(--c-surface);
  color: var(--c-text);
  border: 1px solid var(--c-border-strong);
  box-shadow: var(--sh-1);
}
.btn--google:hover {
  background: var(--c-bg-sunken);
  border-color: var(--c-text-subtle);
  color: var(--c-text);
}
.btn--google .icon { width: 18px; height: 18px; }

.auth-note {
  margin-top: var(--s-4);
  font-size: .84rem;
  line-height: 1.55;
  color: var(--c-text-subtle);
  text-align: center;
}

/* ---------- pending / rejected ---------- */

.pending-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  margin: 0 auto var(--s-4);
  border-radius: 50%;
}
.pending-mark .icon { width: 26px; height: 26px; stroke-width: 1.7; }
.pending-mark--warning { background: var(--c-warning-soft); color: var(--c-warning); }
.pending-mark--danger  { background: var(--c-danger-soft);  color: var(--c-danger); }

.auth-foot {
  margin-top: var(--s-5);
  text-align: center;
  font-size: .8rem;
  color: var(--c-text-subtle);
}

/* ---------- desktop split ---------- */

@media (min-width: 900px) {
  .auth-split { grid-template-columns: 1.05fr .95fr; }

  .auth-aside {
    display: grid;
    position: relative;
    overflow: hidden;
    background: #0a1020;
  }
}

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