* { box-sizing: border-box; }
:root { color-scheme: light; }
body.auth-body { margin: 0; min-height: 100dvh; display: grid; place-items: center; background: radial-gradient(ellipse at 5% 90%, #e3e9fa 0, transparent 55%), radial-gradient(ellipse at 100% 0%, #fce9f1 0, transparent 50%), #f6f8fc; color: #1d293e; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; padding: 36px; }
button, input { font: inherit; }
a { color: #b6164d; text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid #c81755; outline-offset: 3px; }
.auth-shell { width: 100%; max-width: 1020px; display: grid; grid-template-columns: minmax(0, 1fr) 440px; align-items: center; gap: 70px; }
.auth-context-label { display: flex; align-items: center; gap: 10px; font-size: 17px; color: #19245d; font-weight: 750; }
.auth-context-label i { display: grid; place-items: center; width: 42px; height: 44px; background: #fce4ed; color: #c81755; border-radius: 13px; }
.auth-context h2 { color: #19245d; font-size: clamp(34px, 4vw, 52px); line-height: 1.08; letter-spacing: -.045em; font-weight: 750; margin: 30px 0 18px; }
.auth-context p { font-size: 16px; line-height: 1.8; color: #5c6a7d; }
.auth-context-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.auth-context-tags span { background: #ffffffaa; color: #53627c; border: 1px solid #dce4ef; border-radius: 9px; padding: 8px 12px; font-size: 11px; }
.auth-card { width: 100%; padding: 34px; border: 1px solid #e1e7f0; border-radius: 24px; background: #ffffffef; box-shadow: 0 16px 48px #19245d08; }
.auth-logo-wrap { display: flex; justify-content: center; margin-bottom: 14px; }
.auth-logo-img { width: 58px; height: 58px; object-fit: contain; }
.auth-logo-badge { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 18px; background: #fce8ef; color: #c81755; font-size: 26px; }
.auth-brand { display: block; text-align: center; color: #5c6a7d; font-size: 12px; font-weight: 550; }
.auth-title { font-size: 28px; text-align: center; letter-spacing: -.035em; margin: 14px 0 8px; font-weight: 750; color: #19245d; }
.auth-subtitle { text-align: center; font-size: 13px; color: #5c6a7d; margin: 0 0 28px; }
.auth-form-grid { display: grid; gap: 20px; }
.auth-label { display: block; color: #3e4c62; font-size: 12px; font-weight: 650; margin: 0 0 8px; }
.auth-input-wrap { position: relative; }
.auth-input { width: 100%; min-height: 48px; padding: 13px 14px 13px 44px; background: #fbfcfe; border: 1px solid #dce3ed; border-radius: 11px; font-size: 14px; color: #29394e; }
.auth-input::placeholder { color: #758095; }
.auth-input:focus { outline: none; border-color: #ce7191; box-shadow: 0 0 0 3px #c817550c; background: white; }
.auth-input-icon { position: absolute; top: 50%; left: 16px; transform: translateY(-50%); font-size: 14px; color: #6a7890; }
.auth-submit { display: block; width: 100%; border: 0; border-radius: 11px; min-height: 48px; color: white; background: #c81755; font-size: 14px; font-weight: 700; cursor: pointer; }
.auth-submit:hover { background: #aa1247; }
.auth-submit:disabled { opacity: .7; cursor: wait; }
.auth-toggle-pass { min-width: 40px; min-height: 40px; border-radius: 8px; }
.auth-switch { text-align: center; margin: 24px 0 0; font-size: 12px; }
.auth-feedback:empty { display: none; }
.auth-feedback { padding: 12px; border-radius: 10px; margin: 0 0 20px; font-size: 13px; line-height: 1.5; }
.auth-feedback.is-error { color: #9e2440; background: #fceaf0; border: 1px solid #f4d4df; }
@media(max-width: 899.98px) {
    body.auth-body { padding: max(20px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
    .auth-shell { display: block; max-width: 440px; }
    .auth-context { display: none; }
    .auth-input { font-size: 16px; }
    .auth-card { padding: 28px 24px; }
}
@media(max-width: 359.98px) { .auth-card { padding: 24px 18px; } .auth-title { font-size: 25px; } }
