@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/Geist-Variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

.login-page {
  --login-background: #09090b;
  --login-surface: #0b0b0f;
  --login-border: #421e68;
  --login-border-active: #48179c;
  --login-text: #fafafa;
  --login-muted: #a1a1aa;
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--login-background);
  color: var(--login-text);
  font-family: "Geist", "Segoe UI", Arial, sans-serif;
}
.login-page :where(button, input) { font: inherit; }
.login-page button { cursor: pointer; }
.login-page button:disabled { cursor: default; }
.login-page :is(a, button):focus-visible { outline: 2px solid #b08ae2; outline-offset: 4px; }
.login-backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: radial-gradient(ellipse at 50% 48%, #ff624f13, transparent 65%); }
.login-artwork { position: absolute; left: 50%; top: 48%; transform: translate(-50%, -50%); width: min(80vw, 970px); height: auto; opacity: .26; filter: drop-shadow(0 0 55px #ff624f24); }
.login-orbit { position: absolute; left: 50%; top: 48%; transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid #ff624f20; aspect-ratio: 1; }
.login-orbit-outer { width: min(94vw, 1160px); }
.login-orbit-inner { width: min(76vw, 935px); border-style: dashed; border-color: #ff624f18; }
.login-topbar, .login-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 27px 40px; color: var(--login-muted); font-size: 12px; }
.login-domain { font-size: 10px; letter-spacing: .16em; }
.login-home:hover, .login-footer a:hover { color: var(--login-text); }
.login-main { flex: 1; display: grid; place-items: center; padding: 40px 24px; }
.login-panel { width: min(465px, 100%); }
.login-card { padding: 93px 39px 27px; border: 1px solid var(--login-border); border-radius: 16px; background: var(--login-surface); box-shadow: 0 16px 32px #000000a1; display: flex; flex-direction: column; gap: 32px; }
.login-header { display: flex; flex-direction: column; gap: 20px; }
.login-brand { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; line-height: 18px; }
.login-brand img { display: block; width: 28px; height: 28px; }
.login-greeting { display: flex; flex-direction: column; gap: 8px; }
.login-greeting h1 { margin: 0; color: var(--login-text); font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: 0; }
.login-greeting p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--login-muted); }
.login-form { display: flex; flex-direction: column; gap: 32px; margin: 0; }
.login-fields { display: flex; flex-direction: column; gap: 20px; }
.login-field { display: flex; flex-direction: column; gap: 8px; }
.login-field label { font-size: 12px; font-weight: 600; line-height: 16px; text-transform: uppercase; color: var(--login-muted); }
.login-input-wrap { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 13px; border: 1px solid var(--login-border); border-radius: 8px; background: #00000040; }
.login-input-wrap > img { width: 16px; height: 16px; flex-shrink: 0; }
.login-input-wrap input { padding: 0; width: 100%; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--login-text); font-size: 14px; line-height: 18px; }
.login-input-wrap input::placeholder { color: #71717a; opacity: 1; }
.login-password-wrap { border-color: var(--login-border-active); }
.login-password-wrap input::placeholder { color: var(--login-text); }
.login-input-wrap:focus-within { outline: 2px solid #a378d3; outline-offset: 2px; }
.login-input-wrap input:user-invalid { color: #ffaaa0; }
.login-input-wrap input:-webkit-autofill { -webkit-text-fill-color: var(--login-text); box-shadow: 0 0 0 1000px #0b0b0f inset; }
.login-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; min-height: 17px; }
.login-text-button { padding: 0; border: 0; background: transparent; color: var(--login-muted); font-size: 13px; font-weight: 500; line-height: 17px; text-decoration: underline; text-underline-offset: 2px; }
.login-text-button:hover { color: var(--login-text); }
.login-password-toggle { width: 34px; height: 38px; margin: 0 -9px 0 -6px; padding: 9px; flex-shrink: 0; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; }
.login-password-toggle img { display: block; width: 16px; height: 16px; }
.login-password-toggle:hover, .login-password-toggle[aria-pressed="true"] { background: #ffffff0d; }
.login-actions { display: flex; flex-direction: column; gap: 20px; align-items: center; }
.login-submit { width: 100%; min-height: 44px; border: 0; border-radius: 8px; background: #fff; color: #3b3636; box-shadow: 0 4px 12px #ffffff14; font-size: 14px; font-weight: 600; line-height: 18px; padding: 12px 16px; }
.login-submit:hover { background: #eee7f7; }
.login-submit:active { transform: translateY(1px); }
.login-register { margin: 0; color: var(--login-muted); text-align: center; font-size: 14px; line-height: 21px; }
.login-register .login-text-button { font-size: inherit; line-height: inherit; color: var(--login-text); font-weight: 600; }
.login-feedback { margin: -12px 0 0; padding: 12px 14px; border-left: 2px solid #a378d3; background: #a378d30d; font-size: 13px; line-height: 1.6; color: var(--login-text); }
.login-availability { margin: 18px 0 0; text-align: center; color: var(--login-muted); font-size: 12px; line-height: 18px; }
.login-footer { font-size: 11px; padding-top: 18px; padding-bottom: 22px; }

@media (max-width: 600px) {
  /* Avoid automatic field zoom on mobile Safari. */
  .login-input-wrap input { font-size: 16px; }
  .login-topbar { padding: 22px 20px; }
  .login-domain { font-size: 8px; letter-spacing: .1em; }
  .login-main { padding: 24px 20px; }
  .login-card { padding: 45px 23px 27px; }
  .login-greeting h1 { font-size: 23px; }
  .login-artwork { width: 940px; opacity: .16; }
  .login-orbit-outer { width: 1100px; }
  .login-orbit-inner { width: 900px; }
  .login-footer { padding-inline: 20px; }
}
@media (max-width: 360px) {
  .login-card { padding-inline: 19px; }
  .login-label-row { flex-wrap: wrap; gap: 6px; }
  .login-greeting h1 { font-size: 21px; }
}
