* { box-sizing: border-box; }
html { background: var(--bg-surface); color-scheme: light; }
body { margin: 0; color: var(--text-primary); font-family: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif; }
.login-shell { min-height: 100svh; padding: max(32px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; background: radial-gradient(ellipse at 5% 15%, var(--accent-primary-soft), transparent 45%), radial-gradient(ellipse at 95% 90%, var(--bg-surface-pink), transparent 42%); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text-primary); font-size: 17px; font-weight: 650; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--accent-primary-soft); color: var(--accent-foreground); font-size: 14px; letter-spacing: -.03em; }
.login-card { width: min(100%, 432px); padding: 38px 36px 26px; margin: auto 0; border: 1px solid var(--border-subtle); border-radius: 24px; background: var(--bg-surface); box-shadow: var(--shadow-overlay); }
.quiet-mark { display: flex; align-items: end; gap: 4px; height: 28px; margin-bottom: 24px; }
.quiet-mark span { width: 8px; height: 22px; background: var(--accent-primary); border-radius: 3px; }
.quiet-mark span:nth-child(2) { height: 28px; background: var(--accent-pink); }
.quiet-mark span:nth-child(3) { height: 19px; background: var(--accent-primary-soft); }
.eyebrow { color: var(--accent-foreground); font-size: 10px; letter-spacing: .16em; font-weight: 700; margin: 0 0 12px; }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: 36px; letter-spacing: -.035em; font-weight: 500; margin: 0 0 10px; }
.intro { color: var(--text-secondary); margin: 0 0 28px; font-size: 15px; }
label { display: block; font-size: 13px; font-weight: 650; margin-bottom: 9px; }
input[type=text], input[type=password] { width: 100%; height: 48px; border: 1px solid var(--border-input); border-radius: 10px; background: var(--bg-surface); color: var(--text-primary); padding: 12px 14px; font: inherit; font-size: 16px; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
#username { margin-bottom: 21px; }
.password-field { position: relative; }
.password-field input { padding-right: 70px; }
.show-password { position: absolute; inset: 2px 3px 2px auto; width: 60px; border: 0; border-radius: 8px; background: transparent; color: var(--accent-foreground); font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; }
.remember { display: flex; align-items: center; gap: 10px; margin: 20px 0 0; color: var(--text-secondary); font-weight: 400; cursor: pointer; min-height: 28px; }
.remember input { width: 17px; height: 17px; margin: 0; accent-color: var(--button-primary-bg); }
.error { min-height: 38px; margin: 10px 0 6px; font-size: 13px; line-height: 19px; color: var(--danger); }
.submit { width: 100%; min-height: 48px; border: 0; border-radius: 10px; background: var(--button-primary-bg); color: var(--button-primary-text); padding: 12px 18px; font: inherit; font-size: 15px; font-weight: 650; cursor: pointer; }
.submit span { float: right; }
.submit:hover { background: var(--button-primary-hover); }
.submit:disabled { opacity: .65; cursor: wait; }
.card-note, .footer { color: var(--text-muted); font-size: 12px; text-align: center; }
.card-note { margin: 25px 0 0; }
.footer { margin: 24px 0 0; }
@media (max-width: 480px) { .login-shell { padding: 24px 18px; gap: 28px; } .login-card { padding: 28px 24px 24px; } h1 { font-size: 33px; } }
@media (max-height: 750px) { .login-shell { gap: 24px; } .login-card { margin: 0; } .footer { margin-top: 0; } }
