.auth-open-btn { white-space: nowrap; }
.header .auth-open-btn { color: #fff; border: 1px solid rgba(255,255,255,.32); background: rgba(255,255,255,.06); }
.header .auth-open-btn:hover { color: #fff; border-color: rgba(255,255,255,.65); background: rgba(255,255,255,.14); }
.auth-modal { display: none; position: fixed; inset: 0; z-index: 2000; align-items: center; justify-content: center; padding: 20px; }
.auth-modal.is-open { display: flex; }
.auth-backdrop { position: absolute; inset: 0; background: rgba(8, 18, 34, 0.72); backdrop-filter: blur(5px); }
.auth-card { position: relative; width: min(440px, 100%); border-radius: 20px; padding: 30px; background: #fff; color: #14213d; box-shadow: 0 24px 70px rgba(0,0,0,.28); }
.auth-card h2 { margin: 8px 0; }
.auth-card form { display: grid; gap: 10px; margin-top: 20px; }
.auth-card label { font-size: .85rem; font-weight: 700; }
.auth-card input { width: 100%; min-height: 46px; border: 1px solid #cbd5e1; border-radius: 10px; padding: 10px 12px; font: inherit; }
.auth-card input:focus { outline: 2px solid rgba(16, 185, 129, .28); border-color: #10b981; }
.auth-card .btn { width: 100%; margin-top: 6px; }
.auth-close { position: absolute; top: 12px; right: 14px; border: 0; background: transparent; color: #475569; font-size: 28px; cursor: pointer; }
.auth-switch, .auth-signout { display: block; margin: 16px auto 0; border: 0; background: transparent; color: #047857; font-weight: 700; cursor: pointer; }
.auth-status { min-height: 22px; margin: 2px 0; color: #047857; font-size: .9rem; }
.auth-status.is-error { color: #b91c1c; }
@media (max-width: 820px) { .auth-open-btn { display: inline-flex; padding: .55rem .7rem; font-size: .8rem; } .auth-card { padding: 24px 20px; } }
