:root { color-scheme: light; font-family: Inter, "Segoe UI", sans-serif; color: #292524; background: #f7f6f4; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { min-height: 100vh; margin: 0; display: grid; place-items: center; padding: 24px; background: #f7f7f8; }
.auth-card { width: min(100%, 440px); display: grid; gap: 20px; padding: 40px; background: #fff; border: 1px solid #e7e5e4; border-radius: 16px; box-shadow: 0 12px 32px #1c19170a; }
.auth-card.compact { text-align: center; justify-items: center; }
h1 { margin: 0; font-size: 26px; line-height: 1.2; }
.auth-header { display: grid; justify-items: center; gap: 12px; text-align: center; }
.auth-header img { border-radius: 12px; }
.lead, #status { margin: 0; color: #78716c; line-height: 1.55; }
button, input { width: 100%; min-height: 46px; border: 1px solid #d6d3d1; border-radius: 9px; background: #fff; color: inherit; font: inherit; }
button { padding: 0 16px; cursor: pointer; font-weight: 650; }
button:hover { border-color: #a8a29e; background: #fafaf9; }
button:focus-visible, input:focus-visible { outline: 3px solid #c85b3133; border-color: #c85b31; }
button.primary { color: #fff; background: #c85b31; border-color: #c85b31; }
button.primary:hover { background: #b94f29; border-color: #b94f29; }
button:disabled { opacity: .6; cursor: wait; }
#auth-entry, #verification-view { display: grid; gap: 20px; }
#status:empty, #verification-feedback:empty { display: none; }
.form-note { margin: -5px 0 0; color: #78716c; line-height: 1.5; font-size: 13px; }
#verification-view { text-align: center; justify-items: stretch; }
.verification-icon { width: 68px; height: 68px; display: grid; place-items: center; border-radius: 20px; background: #fff0e8; color: #bd542a; }
.verification-icon svg { width: 35px; height: 35px; }
.verification-email { margin: -4px 0; font-size: 17px; font-weight: 700; overflow-wrap: anywhere; }
.verification-detail { margin: -6px 0 0; color: #6b625d; line-height: 1.6; font-size: 14px; }
.verification-actions { display: grid; gap: 10px; }
#verification-feedback { margin: 0; color: #237a57; font-size: 14px; line-height: 1.55; }
#verification-feedback.error { color: #b91c1c; }
.provider-grid { display: grid; gap: 10px; }
.provider-button { display: grid; grid-template-columns: 20px 1fr 20px; align-items: center; gap: 10px; }
.provider-button svg { width: 20px; height: 20px; flex: none; }
form, label { display: grid; gap: 9px; }
form { gap: 15px; }
label { font-size: 14px; font-weight: 650; }
input { padding: 0 12px; font-weight: 400; }
.divider { display: flex; align-items: center; gap: 12px; color: #a8a29e; font-size: 12px; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid #e7e5e4; }
.mode-switch { display: flex; justify-content: center; gap: 5px; margin: -4px 0 0; color: #78716c; font-size: 14px; }
.mode-switch button { width: auto; min-height: 0; border: 0; background: transparent; color: #b94f29; padding: 0; }
.mode-switch button:hover { background: transparent; text-decoration: underline; }
.auth-help { justify-content: space-between; gap: 16px; flex-wrap: wrap; }
#status.error { color: #b91c1c; }
.signed-in .provider-grid, .signed-in .divider, .signed-in #password-form, .signed-in .mode-switch { display: none; }
.result-card { width: min(100%, 480px); justify-items: center; gap: 16px; padding: 44px; text-align: center; border-radius: 24px; box-shadow: 0 24px 70px #2925241a; }
.result-logo { border-radius: 12px; }
.result-icon { width: 64px; height: 64px; display: grid; place-items: center; margin-top: 4px; color: #237a57; background: #e9f7f0; border-radius: 50%; }
.result-failed .result-icon { color: #b42318; background: #fef0ee; }
.result-icon svg { width: 34px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.result-product { margin: 2px 0 -8px; color: #a04d2c; font-size: 13px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.result-card h1 { font-size: clamp(26px, 6vw, 34px); letter-spacing: -.025em; }
.result-message { max-width: 36ch; min-height: 3em; margin: 0 0 8px; color: #6b625d; font-size: 16px; line-height: 1.6; }
.result-actions { width: 100%; display: grid; gap: 10px; }
.account-access { width: 100%; min-width: 0; text-align: start; border-block: 1px solid #e7e5e4; padding-block: 16px; }
.account-access h2 { margin: 0; font-size: 18px; }
.account-access p { font-size: 14px; overflow-wrap: anywhere; }
.account-access .error { color: #b91c1c; }
.account-access dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 16px; font-size: 14px; }
.account-access dt { color: #78716c; }
.account-access dd { margin: 0; text-align: end; overflow-wrap: anywhere; }
.account-card { width: min(100%, 520px); }
.account-card #account-email { margin: 0; text-align: center; overflow-wrap: anywhere; }
.account-card #access-message { margin: 0; overflow-wrap: anywhere; }
.account-card #access-message:empty { display: none; }
.account-card .result-actions { margin-top: 20px; }
.account-action { display: block; padding: 12px 16px; color: #a04d2c; text-align: center; border: 1px solid #d6d3d1; border-radius: 9px; text-decoration: none; }
.account-action:hover { background: #fafaf9; }
.account-action:focus-visible { outline: 3px solid #c85b31; outline-offset: 3px; }
#portal-status { margin: 0; overflow-wrap: anywhere; }
#portal-status:empty { display: none; }
#portal-status.error, #access-message.error { color: #b91c1c; }
@media (max-width: 480px) { body { padding: 0; background: #fff; } .auth-card { min-height: 100vh; align-content: center; padding: 28px 22px; border: 0; border-radius: 0; box-shadow: none; } }
