.login-page { min-height: 100dvh; }
.login-header { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--border); }
.login-back { color: var(--muted); font-size: .9rem; text-decoration: none; }
.login-back:hover { color: var(--accent); text-decoration: underline; }
.login-layout { display: grid; grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr); align-items: center; min-height: calc(100dvh - 82px); padding-block: 42px; }
.login-intro { isolation: isolate; position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-self: stretch; overflow: hidden; min-height: 530px; padding: clamp(24px, 4vw, 60px); border: 1px solid #242a1f; border-radius: 18px; background: #10130e; }
.login-orbit { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 48% 35%, #535f292b, transparent 65%), radial-gradient(#bcc9a837 1px, transparent 1px) 1px 1px / 20px 20px; }
.login-orbit::before { position: absolute; top: 45%; left: 49%; width: min(55%, 300px); aspect-ratio: 1; border: 1px solid #b8cc7d7a; border-radius: 50%; box-shadow: 0 0 0 16px #b8cc7d1a, inset 0 0 48px #d9fa8722; background: radial-gradient(circle at 40% 34%, #d9fa873b, #1e2912a0 54%, transparent); transform: translate(-50%, -55%); content: ""; }
.login-orbit::after { position: absolute; top: 45%; left: 49%; width: 74%; height: 20%; border: 1px solid #c5e17e77; border-radius: 50%; transform: translate(-50%, -50%) rotate(-22deg); content: ""; }
.login-orbit span { position: absolute; top: 42%; left: 68%; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 18px var(--accent); }
.login-intro-copy { max-width: 370px; }
.login-intro h2 { margin: 0 0 10px; font-size: clamp(2.4rem, 4vw, 4.25rem); font-weight: 610; letter-spacing: -.067em; line-height: .98; }
.login-intro p { margin: 0; color: #b9bfaf; font-size: .97rem; }
.login-content { width: min(100%, 404px); justify-self: center; min-width: 0; padding: 30px 12px; }
.login-content h1 { margin: 0 0 24px; font-size: clamp(2.15rem, 4vw, 3.25rem); font-weight: 640; letter-spacing: -.062em; line-height: 1.1; }
.login-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 24px; padding: 4px; border: 1px solid var(--border); border-radius: 10px; background: #111311; }
.login-modes button { min-height: 38px; padding: 5px; border: 0; border-radius: 7px; background: none; color: var(--muted); font-size: .9rem; font-weight: 580; }
.login-modes button[aria-pressed="true"] { color: var(--ink); background: #282d22; }
.email-form { display: grid; gap: 10px; }
.login-label { display: block; color: var(--ink); font-size: .92rem; font-weight: 580; }
.email-form input { width: 100%; min-height: 47px; padding: 9px 12px; border: 1px solid #515749; border-radius: 8px; background: #141712; color: var(--ink); font-size: 1rem; }
.email-form input::placeholder { color: var(--muted); }
#email-field input { margin-top: 7px; }
.login-password { display: flex; margin-top: 7px; border: 1px solid #515749; border-radius: 8px; background: #141712; }
.login-password:focus-within { border-color: var(--accent); }
.login-password input { border: 0; background: none; min-width: 0; }
.login-password button { flex: none; margin: 4px; padding: 4px 7px; border: none; border-radius: 5px; background: none; color: var(--muted); white-space: nowrap; font-size: .8rem; }
.login-password button:hover { color: var(--ink); background: var(--surface-raised); }
.login-link { justify-self: start; width: fit-content; padding: 7px 0; border: 0; background: none; color: var(--accent); font-size: .875rem; text-decoration: underline; text-underline-offset: 3px; }
.login-submit { width: 100%; min-height: 46px; font-size: .94rem; }
.login-help { color: var(--muted); margin: 10px 0; font-size: .885rem; }
.login-feedback { margin: 16px 0 0; color: var(--accent); font-size: .89rem; }
.login-feedback[data-error="true"] { color: #ffb8ac; }
.login-account-email { color: var(--ink); overflow-wrap: anywhere; }
.login-account-actions { display: grid; gap: 10px; margin-top: 20px; }

@media (max-width: 820px) {
  .login-layout { grid-template-columns: 1fr; min-height: auto; padding-block: 14px 38px; }
  .login-intro { display: none; }
  .login-header { min-height: 66px; }
  .login-content { padding-inline: 0; }
}
