/* Standalone authentication UI. Geometry belongs to site-layout.css; no Admin bundle. */
body.login-page {
  --auth-surface: #000;
  --auth-line: #29292c;
  --auth-muted: #a4a4ad;
  --auth-spectrum: conic-gradient(from 0deg, #f669c6, #8656ff, #48b4ff, #00d9be, #8fe165, #f8dc76, #ff8c82, #f669c6);
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #000;
  color: #f5f5f7;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
}

.login-page .login-shell,
.login-page .login-shell * { box-sizing: border-box; }

.login-page .login-shell {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  gap: 28px;
  width: 100%;
  max-width: 496px;
  min-width: 0;
  margin-block: auto;
  padding: clamp(24px, 5vw, 40px);
  border: 1px solid var(--auth-line);
  border-radius: 28px;
  background: var(--auth-surface);
  box-shadow: 0 24px 100px #0006;
  animation: auth-arrive .4s ease-out both;
}

.login-page .login-shell :is(h1, p, form) { margin: 0; }
.login-page .login-shell a { color: inherit; }
.login-page .auth-classic-head { display: flex; justify-content: center; padding-block: 4px; }

.login-page .auth-classic-logo {
  position: relative;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  flex: 0 0 84px;
  border-radius: 50%;
  isolation: isolate;
  text-decoration: none;
}

/* The ring sits outside the image, leaving the complete mark visible. */
.login-page .auth-classic-logo::before {
  content: "";
  position: absolute;
  inset: -9px;
  z-index: -1;
  border-radius: inherit;
  background: var(--auth-spectrum);
  animation: auth-ring-turn 6s linear infinite;
}

.login-page .auth-classic-logo img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  padding: 15px;
  object-fit: contain;
  background: #000;
}

.login-page .auth-copy { display: grid; gap: 12px; min-width: 0; }
.login-page .auth-copy .auth-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #b5b5bf;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.login-page .auth-kicker::before { content: ""; width: 18px; height: 1px; background: #6b6b75; flex-shrink: 0; }
.login-page .auth-copy h1 {
  font-size: clamp(29px, 6.8vw, 38px);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -.045em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.login-page .auth-copy > p:not(.auth-kicker),
.login-page .friend-invite-hint {
  color: var(--auth-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  text-align: start;
  text-wrap: pretty;
}

.login-page .login-shell form { display: grid; gap: 18px; min-width: 0; }
.login-page .auth-field { display: grid; gap: 8px; min-width: 0; }
.login-page .auth-field > span { font-size: 12px; line-height: 1.4; font-weight: 600; color: #d6d6dc; }
.login-page .login-shell input:not([type="hidden"]) {
  appearance: none;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #303034;
  border-radius: 14px;
  background: #0c0c0e;
  color: #fff;
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  transition: border-color .18s ease, background .18s ease;
}
.login-page .login-shell input::placeholder { color: #82828c; opacity: 1; }
.login-page .login-shell input:hover { border-color: #505058; }
.login-page .login-shell input:focus-visible { border-color: #b8b8c4; outline: 2px solid #b8b8c440; outline-offset: 3px; background: #101013; }
.login-page .login-shell input:autofill { -webkit-text-fill-color: #fff; box-shadow: 0 0 0 1000px #101013 inset; caret-color: #fff; }

/* Match the Home registration CTA without importing the public page bundle. */
body.login-page .login-shell .btn {
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  width: 100%;
  min-height: 50px;
  padding: 0 24px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background:
    radial-gradient(circle at 16% 0%, rgba(216,255,79,.16), transparent 34%),
    radial-gradient(circle at 86% 18%, rgba(113,241,223,.14), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.035)),
    #050609;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 950;
  line-height: normal;
  letter-spacing: .075em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 24px 64px rgba(0,0,0,.38), 0 0 36px rgba(113,241,223,.10), inset 0 1px 0 rgba(255,255,255,.16);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, color .18s ease;
}
body.login-page .login-shell .btn::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: -120% -22%;
  background: conic-gradient(from 18deg, #ffda55, #ff7a1a, #ff3f9f, #7c3cff, #00d5ff, #37ff8b, #ffda55);
  animation: auth-ring-turn 4.8s linear infinite;
  opacity: .92;
}
body.login-page .login-shell .btn::after {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(circle at 18% 0%, rgba(255,255,255,.14), transparent 35%),
    radial-gradient(circle at 86% 18%, rgba(113,241,223,.12), transparent 32%),
    linear-gradient(135deg, rgba(14,16,20,.98), rgba(3,4,7,.96));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
  transition: inset .18s ease, background .18s ease, box-shadow .18s ease;
}
body.login-page .login-shell .btn:hover {
  background: #050609;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 30px 80px rgba(0,0,0,.42), 0 0 46px rgba(216,255,79,.14), 0 0 56px rgba(113,241,223,.13), inset 0 1px 0 rgba(255,255,255,.20);
  filter: saturate(1.08);
}
body.login-page .login-shell .btn:hover::after {
  inset: 3px;
  background:
    radial-gradient(circle at 20% 0%, rgba(216,255,79,.17), transparent 36%),
    radial-gradient(circle at 90% 20%, rgba(113,241,223,.15), transparent 34%),
    linear-gradient(135deg, rgba(20,22,26,.98), rgba(3,4,7,.95));
}
body.login-page .login-shell .btn:active { transform: translateY(1px); }
body.login-page .login-shell .btn:disabled { opacity: .55; cursor: not-allowed; }
body.login-page .login-shell .btn.secondary {
  min-height: 52px;
  padding: 14px 20px;
  border: 1px solid var(--auth-line);
  border-radius: 16px;
  background: #0c0c0e;
  font-family: inherit;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .035em;
  text-transform: none;
  box-shadow: none;
  filter: none;
  transform: none;
}
body.login-page .login-shell .btn.secondary::before,
body.login-page .login-shell .btn.secondary::after { content: none; }
body.login-page .login-shell .btn.secondary:hover { background: #19191c; }
.login-page .login-shell :is(a, button):focus-visible { outline: 2px solid #fff; outline-offset: 5px; }

.login-page .login-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 20px;
  padding-top: 16px;
  border-top: 1px solid #232326;
}
.login-page .login-links a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 8px;
  color: #c5c5ce;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.5;
  text-decoration: none;
  text-underline-offset: 5px;
  overflow-wrap: anywhere;
}
.login-page .login-links a:not(.btn):hover { color: #fff; text-decoration: underline; }
.login-page .login-shell :is(.notice, .error) {
  padding: 15px 16px;
  border: 1px solid #383840;
  border-radius: 14px;
  background: #111114;
  color: #d6d6df;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
  overflow-wrap: anywhere;
  text-align: start;
}
.login-page .login-shell .success { border-color: #2d5141; background: #0b1913; color: #b1e4c6; }
.login-page .login-shell :is(.error, .error-box) { border-color: #66333e; background: #221015; color: #ffb9c9; }
.login-page .login-shell .friend-invite-actions { display: grid; gap: 12px; }
.login-page .social-invite-public-shell { gap: 28px; }

@keyframes auth-ring-turn { to { transform: rotate(360deg); } }
@keyframes auth-arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 480px) {
  .login-page .login-shell { gap: 24px; padding: 28px 22px 20px; border-radius: 24px; }
  .login-page .auth-classic-logo { width: 76px; height: 76px; flex-basis: 76px; }
  .login-page .auth-classic-logo img { padding: 14px; }
  .login-page .auth-copy { gap: 10px; }
  .login-page .login-links { gap: 2px 16px; padding-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .login-page .login-shell,
  .login-page .auth-classic-logo::before,
  body.login-page .login-shell .btn::before { animation: none; }
  .login-page .login-shell * { transition: none !important; }
}
@media (forced-colors: active) {
  .login-page .auth-classic-logo, body.login-page .login-shell .btn { border: 2px solid ButtonText; }
}
