@charset "UTF-8";

.login-page {
  color-scheme: dark;
  --bg: #0D0E10;
  --surface: #131519;
  --surface-raised: #181B21;
  --text: #F2F4F8;
  --text-secondary: #A4ACB9;
  --text-muted: #7D8696;
  --border: #22262F;
  --border-strong: #323846;
  --accent: #4F8CFF;
  --mint: #4F8CFF;
  --cta: #F4F6FA;
  --cta-hover: #FFFFFF;
  --cta-text: #0D0E10;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
}
.login-page::before {
  height: 100%;
  background:
    radial-gradient(50% 45% at 82% 32%, rgba(79, 140, 255, 0.11), transparent 62%),
    radial-gradient(45% 40% at 14% 40%, rgba(99, 102, 241, 0.08), transparent 60%);
}
.login-page .site-header {
  position: relative;
  flex: none;
  background: rgba(13, 14, 16, 0.88);
  border-bottom-color: var(--border);
}
.login-home {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
}
.login-home:hover { color: var(--text); }
.login-home svg { width: 16px; height: 16px; }
.login-main {
  flex: 1;
  width: min(1080px, calc(100% - 72px));
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 88px;
  align-items: center;
  padding-block: 56px;
}
.login-story { min-width: 0; }
.login-story .eyebrow { font-size: 12px; }
.login-display {
  margin-top: 22px;
  font-size: clamp(34px, 3.6vw, 48px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.24;
  text-wrap: balance;
}
.login-story-description {
  max-width: 390px;
  margin-top: 18px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.82;
}
.login-preview {
  overflow: hidden;
  max-width: 400px;
  margin-top: 28px;
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  background: #0D0E10;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.45);
}
.login-preview-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #14171D;
  color: #9AA4B2;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
}
.login-preview-top > span:first-child { width: 6px; height: 6px; background: #4F8CFF; border-radius: 50%; }
.login-preview-top > span:last-child { margin-left: auto; font-family: var(--font); font-size: 11.5px; letter-spacing: 0; }
.login-preview img { display: block; width: 100%; height: auto; }
.login-story-note { display: flex; align-items: center; gap: 8px; margin-top: 20px; color: var(--text-secondary); font-size: 12.5px; }
.login-story-note svg { width: 16px; height: 16px; color: var(--accent); }

.login-card {
  position: relative;
  width: 100%;
  padding: 34px 34px 24px;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: linear-gradient(160deg, #161920, #111318 82%);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.55);
}
.login-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 16%;
  right: 16%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 140, 255, 0.55), transparent);
  pointer-events: none;
}
.login-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border: 1px solid rgba(79, 140, 255, 0.30);
  border-radius: 11px;
  background: rgba(79, 140, 255, 0.12);
  color: #79A8FF;
}
.login-mark svg { width: 21px; height: 21px; stroke-width: 1.7; }
.login-kicker { color: var(--text-muted); font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; }
.login-card h1 { margin-top: 8px; font-size: 27px; font-weight: 650; line-height: 1.35; letter-spacing: -0.035em; }
.login-description { margin-top: 8px; color: var(--text-secondary); font-size: 14px; }
#login-form { margin-top: 26px; }
#login-fields { margin: 0; padding: 0; border: 0; min-width: 0; transition: opacity 180ms; }
#login-fields:disabled { opacity: 0.78; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.login-field + .login-field { margin-top: 18px; }
.login-field label { display: block; margin-bottom: 8px; color: #D4DAE4; font-size: 13px; font-weight: 550; }
.login-field input {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text);
  background: #0D0E10;
  font: 400 15.5px/1.5 var(--font);
  outline: none;
}
.login-field input::placeholder { color: #677285; }
.login-field input:focus { border-color: #4F8CFF; box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.18); }
.login-field input[aria-invalid="true"] { border-color: #EF6B7E; }
.login-field input:-webkit-autofill { -webkit-text-fill-color: #F2F4F8; caret-color: #F2F4F8; -webkit-box-shadow: 0 0 0 1000px #151B26 inset; }
.password-shell { position: relative; }
.password-shell input { padding-right: 54px; }
.password-toggle {
  position: absolute;
  top: 3px;
  right: 3px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
}
.password-toggle:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.password-toggle:focus-visible, #login-clear:focus-visible { outline: 2px solid #4F8CFF; outline-offset: 2px; }
.password-toggle svg { width: 19px; height: 19px; }
.field-error { margin-top: 6px; color: #FCA5A5; font-size: 12px; }
.login-message {
  margin-top: 16px;
  padding: 11px 13px;
  border: 1px solid rgba(248, 113, 113, 0.45);
  border-radius: 9px;
  color: #FECACA;
  background: rgba(127, 29, 29, 0.35);
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.login-submit {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 24px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--cta);
  color: var(--cta-text);
  font: 650 15px/1.5 var(--font);
  cursor: pointer;
}
.login-submit:hover { background: var(--cta-hover); }
.login-submit:focus-visible { outline: 2px solid #4F8CFF; outline-offset: 3px; }
.login-submit svg { width: 16px; height: 16px; stroke-width: 2; }
.login-submit:disabled, .password-toggle:disabled, #login-clear:disabled { cursor: wait; }
.login-spinner { display: block; width: 16px; height: 16px; border: 2px solid rgba(13, 14, 16, 0.25); border-top-color: #0D0E10; border-radius: 50%; animation: login-spin 800ms linear infinite; }
.login-boundary { display: flex; align-items: flex-start; gap: 9px; margin-top: 18px; color: var(--text-secondary); }
.login-boundary svg { flex: none; width: 15px; height: 15px; margin-top: 3px; color: var(--accent); }
.login-boundary p { font-size: 12px; line-height: 1.75; }
.login-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 14px;
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.login-card-footer a, #login-clear { display: inline-flex; min-height: 42px; align-items: center; color: var(--text-secondary); font: 400 12.5px/1.5 var(--font); }
.login-card-footer a { gap: 6px; }
.login-card-footer a:hover, #login-clear:hover { color: var(--text); }
#login-clear { padding: 0; border: 0; background: none; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--border-strong); }
.login-noscript { margin-top: 14px; color: #FBBF24; font-size: 13px; }
.login-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding-block: 20px 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12.5px;
}
.login-footer a { display: inline-flex; align-items: center; min-height: 40px; }
.login-page [hidden] { display: none !important; }
@keyframes login-spin { to { transform: rotate(360deg); } }

@media (max-width: 1100px) {
  .login-main { width: calc(100% - 56px); grid-template-columns: 1fr 410px; gap: 48px; }
}
@media (max-width: 900px) {
  .login-main { display: flex; width: min(440px, calc(100% - 40px)); justify-content: center; padding-block: 40px; }
  .login-story { display: none; }
  .login-card { padding-inline: 30px; }
  .login-footer { justify-content: center; text-align: center; }
}
@media (max-width: 520px) {
  .login-main { padding-block: 24px; }
  .login-card { border-radius: 16px; padding: 26px 22px 16px; }
  .login-card h1 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .login-spinner { animation: none; }
}
