/* Login-only presentation. Shared auth pages keep auth.css. */
body.login-page {
  color-scheme: dark;
  background: #080f14;
  color: #f4f6f7;
  font-family: Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}
.login-page .login-stage {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 105px 24px 72px;
  overflow: hidden;
}
.login-scene, .login-aurora, .login-shade {
  position: absolute;
  pointer-events: none;
}
.login-scene {
  inset: -10px;
  z-index: -3;
  background: #080f14 url('../img/login-atmosphere-7e678f9b9824.webp') center / cover no-repeat;
  filter: brightness(.56);
  animation: login-scene-drift 18s ease-in-out infinite alternate;
}
.login-aurora {
  inset: -18%;
  z-index: -2;
  background: radial-gradient(ellipse at 41% 27%, #4ecdbb13, transparent 30%),
              radial-gradient(ellipse at 47% 75%, #46e4cd09, transparent 28%);
  mix-blend-mode: screen;
  animation: login-aurora-drift 14s ease-in-out infinite alternate;
}
.login-shade {
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at center, #08111612, #07101566 68%, #070e1399);
}
.login-brand {
  position: absolute;
  top: 34px;
  left: 40px;
  display: flex;
  align-items: center;
  gap: 17px;
  animation: login-appear .8s ease both;
}
.login-brand svg { width: 25px; height: 30px; }
.login-brand span { font-size: 18px; font-weight: 600; letter-spacing: 4px; }
.login-card {
  width: min(100%, 480px);
  min-width: 0;
  padding: 38px 40px;
  border: 1px solid #7fafa747;
  border-radius: 22px;
  background: linear-gradient(125deg, #111b21ed, #0c151bf0);
  backdrop-filter: blur(20px);
  box-shadow: 0 25px 90px #0004;
  animation: login-rise-in 1.05s .15s cubic-bezier(.2, .7, .2, 1) both;
}
.login-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #90a0ad;
  font-size: 12px;
  letter-spacing: .085em;
  line-height: 20px;
}
.login-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #75f2d0;
  box-shadow: 0 0 16px #75f2d021;
}
.login-card h1 { margin: 23px 0 9px; font-size: 34px; font-weight: 600; letter-spacing: .055em; line-height: 1.2; }
.login-welcome { margin: 0; color: #83939f; font-size: 17px; line-height: 1.3; }
.login-alerts { display: grid; gap: 8px; margin-top: 22px; }
.login-alert, .login-unavailable {
  padding: 12px 14px;
  border: 1px solid #e5999e44;
  border-radius: 10px;
  background: #84364526;
  color: #f6c7ce;
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.login-alert { margin: 0; }
.login-unavailable { margin: 24px 0 0; }
.login-fields { margin-top: 32px; }
.login-field + .login-field { margin-top: 22px; }
.login-field label { display: block; margin-bottom: 9px; color: #a6b4c0; font-size: 14px; line-height: 1.2; }
.login-input-shell {
  display: flex;
  align-items: center;
  height: 52px;
  border: 1px solid #879aa361;
  border-radius: 10px;
  background: #0b13181c;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.login-input-shell:focus-within { border-color: #76e6ce; box-shadow: 0 0 0 3px #75f2d00d; background: #111d2277; }
.login-input-icon { width: 19px; height: 19px; margin-left: 17px; color: #8e9eab; flex-shrink: 0; }
.login-input-shell input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 17px;
  border: 0;
  border-radius: 10px;
  outline: 0;
  background: transparent;
  color: #f1f7f8;
  font: inherit;
  font-size: 16px;
  caret-color: #75f2d0;
}
.login-input-shell input:autofill { box-shadow: 0 0 0 100px #142128 inset; }
.login-password-toggle {
  display: grid;
  place-items: center;
  width: 47px;
  height: 100%;
  flex-shrink: 0;
  border: 0;
  border-radius: 8px;
  background: none;
  color: #8e9eab;
  transition: color .2s;
}
.login-password-toggle[hidden] { display: none; }
.login-password-toggle:hover { color: #75f2d0; }
.login-password-toggle svg { width: 20px; height: 20px; }
.login-verification { margin-top: 24px; }
.login-verification .cf-turnstile { width: 100%; }
.login-verification-status { margin: 10px 0 0; color: #9dafb9; font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.login-submit {
  position: relative;
  width: 100%;
  min-height: 54px;
  margin-top: 24px;
  padding: 12px 52px;
  overflow: hidden;
  border: 1px solid #a5ffe855;
  border-radius: 10px;
  background: linear-gradient(110deg, #7bf3d5, #70f0ce);
  color: #061915;
  font: inherit;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: .03em;
  transition: transform .25s, box-shadow .3s, filter .3s;
}
.login-submit::before {
  content: "";
  position: absolute;
  inset: -100% 0;
  background: linear-gradient(100deg, transparent 20%, #ffffff32 48%, transparent 75%);
  transform: translateX(-150%);
  transition: transform .65s;
}
.login-submit:not(:disabled):hover::before { transform: translateX(150%); }
.login-submit:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 8px 32px #75f2d018; filter: brightness(1.025); }
.login-submit:not(:disabled):active { transform: translateY(0); }
.login-submit:disabled { cursor: not-allowed; opacity: .55; }
.login-submit svg { position: absolute; top: 50%; right: 24px; width: 19px; height: 19px; transform: translateY(-50%); }
.login-page button:focus-visible { outline: 2px solid #b0ffe9; outline-offset: 4px; }
.login-safe { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 25px 0 0; color: #83939f; font-size: 11px; line-height: 20px; }
.login-safe svg { width: 16px; height: 16px; flex-shrink: 0; }
.login-copyright { position: absolute; left: 40px; bottom: 27px; color: #7b8c97; font-size: 11px; letter-spacing: .02em; }
/* Match the old registration pane's hidden state without depending on the CDN. */
.login-card #regTab:not(.show) { display: none; }
@keyframes login-scene-drift { from { transform: translate3d(0, 0, 0) scale(1.008); } to { transform: translate3d(-3px, -5px, 0) scale(1.016); } }
@keyframes login-aurora-drift { from { transform: translate3d(-2%, 1%, 0) rotate(-3deg); opacity: .4; } to { transform: translate3d(3%, -2%, 0) rotate(4deg); opacity: 1; } }
@keyframes login-appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes login-rise-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 900px) {
  .login-page .login-stage { padding: 96px 24px 65px; }
  .login-brand { top: 28px; left: 28px; }
  .login-card { padding: 33px 30px; }
  .login-copyright { left: 28px; bottom: 24px; }
  .login-scene { background-position: 45% center; }
}
@media (max-width: 479px) {
  .login-page .login-stage { padding: 88px 18px 62px; }
  .login-card { padding: 30px 24px; }
  .login-brand, .login-copyright { left: 24px; }
}
@media (max-width: 379px) {
  .login-page .login-stage { padding-right: 8px; padding-left: 8px; }
  .login-card { padding-right: 18px; padding-left: 18px; }
  /* Flexible Turnstile needs 300px. Keep it inside the card at a 320px viewport. */
  .login-verification { margin-right: -18px; margin-left: -18px; }
}
@media (prefers-reduced-motion: reduce) {
  .login-scene, .login-aurora, .login-brand, .login-card { animation: none; }
  .login-input-shell, .login-password-toggle, .login-submit, .login-submit::before { transition: none; }
  .login-submit:not(:disabled):hover { transform: none; }
}
