body[data-auth="loading"] > aside, body[data-auth="loading"] > main,
body[data-auth="guest"] > aside, body[data-auth="guest"] > main { display: none; }
.auth-screen { min-height: 100dvh; width: 100%; display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); color: var(--ink); }
.auth-story { padding: clamp(36px, 6vw, 90px); background: linear-gradient(145deg, #edf4ff, #f8fbff 65%, #fff6dd); display: flex; flex-direction: column; justify-content: space-between; gap: 60px; color: #20355d; }
.auth-brand { display: flex; align-items: center; gap: 12px; font-size: 26px; font-weight: 800; letter-spacing: 2px; }
.auth-brand img { width: 44px; height: 44px; border-radius: 13px; }
.auth-story h1 { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.45; letter-spacing: -1px; margin: 0 0 24px; }
.auth-story h1 em { font-style: normal; color: #3979ed; }
.auth-story p { color: #64748b; line-height: 1.9; max-width: 390px; }
.auth-story small { color: #7c8799; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 48px 32px; }
.auth-card { width: 100%; max-width: 390px; }
.auth-card h2 { font-size: 29px; margin: 0 0 12px; }
.auth-description { color: var(--muted, #6c7789); font-size: 14px; line-height: 1.8; margin: 0 0 28px; }
.auth-form { display: grid; gap: 16px; }
.auth-field { display: grid; gap: 8px; font-size: 14px; font-weight: 600; margin: 0; }
.auth-field input { width: 100%; min-height: 46px; border-radius: 10px; padding: 11px 13px; font-weight: 400; }
.auth-code-input { display: flex; align-items: center; gap: 8px; min-width: 0; }
.auth-code-input input { flex: 1; min-width: 0; }
.auth-code-input button { flex-shrink: 0; min-width: 108px; min-height: 46px; padding: 8px 10px; font-size: 12px; }
.auth-limit-note { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 0; }
#auth-mail-note { margin-top: 18px; }
.auth-password { display: flex; position: relative; align-items: center; }
.auth-password input { padding-right: 64px; }
.auth-password button { position: absolute; right: 10px; font-size: 12px; background: transparent; border: 0; color: var(--muted, #6c7789); padding: 5px; }
.auth-inline { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; }
.auth-check { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.8; font-weight: 400; margin: 0; }
.auth-check input { width: 16px; height: 16px; margin-top: 4px; flex-shrink: 0; }
.auth-link { color: var(--accent, #3979ed); border: 0; background: transparent; padding: 0; font: inherit; cursor: pointer; }
.auth-footer { text-align: center; font-size: 13px; color: var(--muted, #6c7789); margin-top: 24px; line-height: 1.8; }
.auth-status { min-height: 22px; color: var(--muted, #6c7789); font-size: 13px; line-height: 1.7; margin: 14px 0; }
.auth-status.error { color: #c43b42; }
.auth-modal { width: min(480px, calc(100vw - 32px)); }
.auth-session { padding: 18px 0; border-bottom: 1px solid var(--border, #e6eaf0); display: grid; gap: 8px; }
.auth-session p { overflow-wrap: anywhere; font-size: 12px; color: var(--muted, #6c7789); margin: 0; line-height: 1.7; }
.auth-session button { justify-self: start; }
.account-signout { margin-top: 22px; }
#account-auth-note { width: auto; height: auto; background: transparent; border-radius: 0; }
#account-email { overflow-wrap: anywhere; text-align: right; max-width: 45%; }
@media (max-width: 760px) { .auth-screen { grid-template-columns: 1fr; } .auth-story { padding: 24px; gap: 18px; } .auth-story h1 { font-size: 25px; margin: 0; } .auth-story p, .auth-story small { display: none; } .auth-panel { padding: 32px 24px; align-items: flex-start; } }
