#authScreen { position: fixed; inset: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; padding: 56px 24px; border: 0; background: var(--bg-body); color: var(--text-main); font-family: var(--font-main); overflow-y: auto; }
#authScreen::backdrop { background: var(--bg-body); }
.auth-content { width: min(360px,100%); margin: max(10px,calc((100dvh - 750px)/2)) auto 42px; }
.auth-logo { width: 46px; height: 46px; object-fit: contain; display: block; margin: 0 0 22px; }
.auth-eyebrow { font-size: .66rem; font-weight: 650; letter-spacing: .22em; color: var(--text-muted); margin: 0 0 10px; }
#authTitle { font-family: var(--font-display); font-size: clamp(27px,5vw,34px); letter-spacing: -.045em; line-height: 1.2; font-weight: 600; margin: 0 0 12px; }
#authSubtitle { font-size: .91rem; color: var(--text-muted); line-height: 1.6; margin: 0 0 26px; }
.auth-close { position: fixed; top: max(20px,env(safe-area-inset-top)); right: 22px; color: var(--text-muted); background: transparent; border: 0; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1rem; }
.auth-close:hover { background: rgba(130,155,205,.08); }
.auth-tabs { display: flex; padding: 4px; gap: 4px; border: 1px solid var(--glass-border); background: rgba(130,155,205,.035); border-radius: 15px; margin-bottom: 25px; }
.auth-tabs button { flex: 1; border: 0; background: transparent; color: var(--text-muted); border-radius: 11px; padding: 10px; font: inherit; font-size: .85rem; cursor: pointer; }
.auth-tabs button[aria-selected="true"] { background: rgba(130,155,205,.1); color: var(--text-main); }
#authForm label { display: block; margin: 0 0 9px; font-size: .8rem; font-weight: 500; }
#authForm input { width: 100%; padding: 13px 14px; border: 1px solid var(--glass-border); border-radius: 13px; background: rgba(130,155,205,.045); color: var(--text-main); font: inherit; font-size: .9rem; outline: none; }
#authForm input:focus { border-color: #5685ff; }
#authForm > div { margin-bottom: 18px; }
.auth-password { position: relative; }
#authPassword { padding-right: 48px !important; }
.auth-password button { position: absolute; top: 0; right: 4px; height: 100%; width: 40px; border: 0; background: transparent; color: var(--text-muted); cursor: pointer; }
.auth-link { border: 0; background: transparent; color: var(--text-muted); cursor: pointer; font: inherit; font-size: .8rem; padding: 7px 0; }
.auth-link:hover { color: var(--text-main); }
#authForgot { display: block; margin: -7px 0 17px auto; }
.auth-submit { width: 100%; margin: 0 0 12px; min-height: 46px; }
.auth-submit:disabled { opacity: .5; cursor: wait; transform: none; }
.auth-status { font-size: .83rem; line-height: 1.6; color: var(--text-muted); margin: 8px 0; overflow-wrap: anywhere; }
.auth-status[data-error="true"] { color: #f29191; }
.auth-guest { display: block; margin: 20px auto 5px; }
.auth-note { text-align: center; color: var(--text-muted); opacity: .7; line-height: 1.5; font-size: .7rem; margin: 0; }
.auth-footer { text-align: center; color: var(--text-muted); opacity: .6; font-size: .7rem; margin: 32px 0 0; }
.auth-account-name { font-size: 1.1rem; margin: 0 0 8px; font-weight: 550; }
#authAccountEmail { color: var(--text-muted); font-size: .88rem; margin: 0 0 24px; }
.auth-sync-status { color: var(--text-muted); font-size: .8rem; line-height: 1.5; margin: 0 0 22px; }
#authImport { border: 1px solid var(--glass-border); border-radius: 16px; padding: 16px; margin-top: 16px; font-size: .84rem; line-height: 1.6; }
#authImport > p { margin: 0 0 15px; }
#authImport .auth-link { display: block; margin: 4px auto 0; }
#authScreen [hidden] { display: none !important; }
#authScreen :is(button,input):focus-visible { outline: 2px solid #5685ff; outline-offset: 3px; }
#amlealt-sidebar .account-entry { border: 0; background: transparent; font: inherit; text-align: left; width: 100%; }
@media(max-width:480px) { #authScreen { padding-top: 58px; } .auth-content { margin-top: 16px; } }
.auth-google { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 46px; padding: 12px 16px; border: 1px solid var(--glass-border); border-radius: 13px; background: rgba(130,155,205,.045); color: var(--text-main); font: inherit; font-size: .88rem; cursor: pointer; }
.auth-google:hover { background: rgba(130,155,205,.1); }
.auth-google:disabled { opacity: .5; cursor: wait; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: .72rem; margin: 20px 0; }
.auth-divider::before,.auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--glass-border); }
#authTitle:focus { outline: none; }
