/* Shared sign-in panel: no remote fonts, scripts, or identity-provider assets. */
.auth-legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 20px; margin: 20px 0 0; font-size: 11px; color: #586674; }
.auth-legal-links a { text-decoration: underline; text-underline-offset: 3px; }
.dashboard-link { display: inline-flex; align-items: center; gap: 14px; margin: 16px 0 0 19px; font-size: 12px; color: var(--green); border-bottom: 1px solid #b4bcbf; padding-bottom: 3px; }
.auth-dialog { width: min(480px, calc(100% - 28px)); max-height: calc(100dvh - 28px); border: 1px solid #d8d1c6; border-radius: 20px; padding: 0; color: var(--ink); background: var(--paper); box-shadow: 0 24px 100px #12233040; overflow-y: auto; }
.auth-dialog::backdrop { background: #172b3bb3; backdrop-filter: blur(4px); }
.auth-panel { position: relative; width: 100%; padding: 32px 34px 30px; }
.auth-close { position: absolute; right: 14px; top: 12px; width: 34px; height: 34px; border: 1px solid transparent; border-radius: 50%; background: transparent; font-size: 24px; line-height: 1; }
.auth-close:hover { background: #eae7e1; }
.auth-panel .eyebrow { margin: 0 0 11px; font-size: 9px; letter-spacing: .2em; }
.auth-panel h1, .auth-panel h2 { font: normal 34px/1.2 var(--serif); margin: 0 0 10px; }
.auth-description { font-size: 13px; color: #5c6873; margin: 0 0 23px; line-height: 1.65; }
.auth-tabs { display: flex; padding: 4px; border: 1px solid var(--line); border-radius: 11px; margin-bottom: 21px; background: #eeece7; }
.auth-tabs button { flex: 1; border: 0; border-radius: 7px; background: transparent; padding: 9px; font-size: 12px; color: #54616d; }
.auth-tabs button[aria-pressed="true"] { background: #fffefa; color: var(--ink); box-shadow: 0 1px 4px #253c4814; }
.auth-form { display: grid; gap: 16px; }
.auth-field { display: grid; gap: 6px; }
.auth-field label { font-size: 12px; font-weight: 600; }
.auth-field input { width: 100%; min-height: 45px; padding: 10px 12px; color: var(--ink); background: #fffefa; border: 1px solid #c5c4bf; border-radius: 8px; font: 15px/1.45 var(--sans); }
.auth-field input:focus { outline: 2px solid #385366; outline-offset: 2px; border-color: #385366; }
.auth-hint { color: #65707a; font-size: 11px; line-height: 1.5; margin: 0; }
.auth-submit, .auth-workspace { display: flex; justify-content: center; width: 100%; min-height: 46px; align-items: center; border: 1px solid #2a3e4d; border-radius: 9px; background: #2e4454; color: #fffdfa; padding: 10px 14px; font-size: 13px; font-weight: 600; }
.auth-submit:hover, .auth-workspace:hover { background: #233744; }
.auth-panel button:disabled, .auth-panel input:disabled { cursor: wait; opacity: .65; }
.auth-status { margin: 0 0 18px; padding: 11px 12px; border: 1px solid #c4d5cf; border-radius: 8px; background: #ecf3ee; color: #2a5143; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.auth-status[data-kind="error"] { border-color: #e0c5b8; background: #fbefe8; color: #803b28; }
.auth-status[data-kind="info"] { border-color: #d6dfe3; background: #eef2f4; color: #3b5365; }
.auth-status:empty { display: none; }
.auth-text-button { display: inline; padding: 0; border: 0; background: transparent; color: #385366; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.auth-secondary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 14px; margin: 14px 0 0; }
.auth-social { margin-top: 22px; }
.auth-divider { display: flex; gap: 13px; align-items: center; font-size: 11px; color: #6a747c; margin-bottom: 13px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-provider-links { display: grid; gap: 9px; }
.auth-provider { position: relative; display: flex; justify-content: center; align-items: center; gap: 12px; min-height: 52px; padding: 12px 40px; border: 1px solid #dadce0; border-radius: 9px; background: #fff; color: #3c4043; font: 600 15px/1.4 Arial, sans-serif; box-shadow: 0 2px 5px #202b3609; }
.auth-provider:hover { border-color: #8a9aa4; background: #eff2f2; }
.auth-provider-mark { position: absolute; left: 16px; display: grid; place-items: center; width: 24px; height: 24px; font-size: 15px; font-weight: 700; }
.auth-provider-mark img { display: block; width: 24px; height: 24px; }
.auth-provider-facebook { background: #1877f2; border-color: #1877f2; color: #fff; }
.auth-provider-facebook:hover { background: #166fe5; border-color: #166fe5; }
.auth-provider-google .auth-provider-mark { color: #2867bb; }
.auth-provider-facebook .auth-provider-mark { color: #1769be; }
.auth-provider-microsoft .auth-provider-mark { color: #647340; }
.auth-unavailable { margin: 12px 0 0; font-size: 11px; color: #6b747b; text-align: center; }
.auth-account { border: 1px solid var(--line); border-radius: 9px; padding: 12px; margin: 0 0 18px; font-size: 13px; overflow-wrap: anywhere; }
.auth-account strong { display: block; color: var(--ink); }
.auth-account span { color: #66717a; font-size: 12px; }
.auth-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: radial-gradient(ellipse at 75% 35%, #e4eaec 0%, transparent 55%), var(--paper); }
.auth-page-header { width: min(1100px, calc(100% - 48px)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; min-height: 110px; gap: 20px; }
.auth-page-header > a:last-child { font-size: 12px; color: var(--green); }
.auth-page-main { width: min(480px, calc(100% - 28px)); margin: auto; padding: 24px 0; }
.auth-page-main > .auth-panel { background: #fffdf9; border: 1px solid #ddd7cf; border-radius: 18px; box-shadow: 0 15px 55px #1f384a0c; }
.auth-page-footer { text-align: center; font: italic 14px var(--serif); color: #68717b; padding: 24px; }
@media (max-width: 520px) {
    .auth-panel { padding: 30px 23px 25px; }
    .auth-panel h1, .auth-panel h2 { font-size: 31px; }
    .auth-page-header { width: calc(100% - 34px); min-height: 85px; }
    .auth-page-header .brand { font-size: 18px; }
    .auth-page-header .brand img { width: 45px; }
    .auth-page-header > a:last-child { font-size: 10px; }
    .dashboard-link { margin-left: 12px; }
}
