:root { color-scheme: light; --auth-ink: var(--df-text, #334155); --auth-muted: var(--df-muted, #64748b); --auth-blue: var(--df-primary, #008e70); }
* { box-sizing: border-box; }
body.auth-page { margin: 0; min-height: 100vh; padding: 38px 20px 24px; background: var(--df-page-background, #f5f8f6); color: var(--auth-ink); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
.auth-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 auto 28px; color: var(--auth-ink); text-decoration: none; font-weight: 700; font-size: 20px; }
.auth-brand__accent { color: var(--auth-blue); }
.auth-brand img { flex: 0 0 auto; object-fit: contain; }
.auth-card { width: 100%; max-width: 440px; margin: auto; padding: 34px; background: #fff; border: 1px solid var(--df-border, #dce7e1); border-radius: 18px; box-shadow: 0 16px 48px #0754430c; }
.auth-heading { margin-bottom: 26px; }
.auth-heading h1 { font-size: 28px; letter-spacing: -.6px; line-height: 1.2; margin: 0 0 10px; }
.auth-heading p, .auth-hint { color: var(--auth-muted); }
.auth-heading p { margin: 0; font-size: 15px; }
.auth-page a { color: var(--auth-blue); text-underline-offset: 3px; }
.auth-google { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 48px; padding: 12px 18px; border: 1px solid #747775; border-radius: 8px; background: white; color: #1f1f1f !important; text-decoration: none; font: 500 15px/1.4 Arial, sans-serif; }
.auth-google:hover { background: var(--df-surface-muted, #f7faf8); }
.auth-google svg { flex: 0 0 auto; }
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--auth-muted); font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--df-border, #dce7e1); }
.auth-field { margin-bottom: 18px; }
.auth-field > label { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 600; }
.auth-input { display: block; width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--df-primary-border, #b8d8c6); border-radius: 10px; color: var(--auth-ink); background: #fff; font: inherit; }
.auth-password { position: relative; }
.auth-password .auth-input { padding-right: 72px; }
.auth-password-toggle { position: absolute; right: 4px; top: 4px; min-width: 60px; min-height: 40px; padding: 8px; border: 0; border-radius: 5px; color: var(--auth-blue); background: white; cursor: pointer; font: 600 13px system-ui, sans-serif; }
.auth-input:focus, .auth-page a:focus-visible, .auth-page button:focus-visible, .auth-page summary:focus-visible { outline: 3px solid var(--df-primary-light, #8dcbb4); outline-offset: 3px; }
.auth-input[aria-invalid="true"] { border-color: #b33636; }
.auth-field-error { display: block; margin-top: 6px; color: #a32525; font-size: 13px; }
.auth-hint { margin: 7px 0 0; font-size: 13px; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 4px 0 22px; font-size: 14px; }
.auth-check { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; }
.auth-check input { flex: 0 0 auto; margin: 4px 0 0; width: 17px; height: 17px; accent-color: var(--auth-blue); }
.auth-primary { display: block; width: 100%; min-height: 48px; margin-top: 20px; padding: 12px 18px; border: 1px solid var(--auth-blue); border-radius: 8px; color: white; background: var(--auth-blue); cursor: pointer; font: 600 16px/1.4 system-ui, sans-serif; text-align: center; text-decoration: none; }
.auth-primary:hover { background: var(--df-primary-hover, #00785e); border-color: var(--df-primary-hover, #00785e); }
.auth-primary:disabled { opacity: .7; cursor: wait; }
.auth-switch { text-align: center; font-size: 14px; margin: 23px 0 0; }
.auth-details { margin: 5px 0 20px; border-top: 1px solid var(--df-border, #dce7e1); padding-top: 16px; }
.auth-details summary { color: var(--auth-muted); font-size: 14px; cursor: pointer; margin-bottom: 14px; }
.auth-notice, .auth-errors { padding: 12px 14px; margin-bottom: 20px; border-radius: 8px; font-size: 14px; overflow-wrap: anywhere; }
.auth-notice { border: 1px solid var(--df-primary-border, #b8d8c6); background: var(--df-primary-soft, #e9f5ee); color: var(--df-primary-dark, #075443); }
.auth-errors { border: 1px solid #edb9b9; color: #842727; background: #fff6f6; }
.auth-errors p { margin: 0 0 5px; font-weight: 600; }
.auth-errors ul { margin: 0; padding-left: 19px; }
.auth-captcha { display: flex; align-items: flex-start; justify-content: flex-start; width: 100%; min-height: 78px; margin: 18px 0; overflow: hidden; }
.auth-captcha > div { flex: 0 0 304px; width: 304px; max-width: 100%; min-height: 78px; }
.auth-footer { display: flex; align-items: center; justify-content: center; gap: 13px; margin: 24px auto 0; font-size: 13px; color: var(--auth-muted); }
.auth-footer a { color: var(--auth-muted); }
.auth-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 480px) { body.auth-page { padding: 24px 16px; } .auth-brand { margin-bottom: 22px; } .auth-card { padding: 24px 18px; border-radius: 12px; } .auth-heading h1 { font-size: 26px; } }
@media (max-width: 359px) { .auth-card { padding: 22px 12px; } .auth-captcha { transform: scale(.86); transform-origin: left top; width: 116%; margin-bottom: 2px; } }

body.auth-page--wide { display: flex; flex-direction: column; justify-content: center; min-height: 100vh; min-height: 100dvh; padding: 48px 24px 32px; background: radial-gradient(ellipse at 15% 0%, var(--df-primary-soft, #e9f5ee), transparent 58%), var(--df-page-background, #f5f8f6); }
.auth-page--wide .auth-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: clamp(28px, 5vw, 64px); max-width: 1040px; margin: 0 auto; padding: 48px; border: 1px solid var(--df-border, #dce7e1); border-radius: 24px; box-shadow: 0 20px 65px #0754430b; }
.auth-page--wide .auth-heading { margin: 0; }
.auth-page--wide .auth-brand { justify-content: flex-start; width: fit-content; margin: 0 0 36px; color: var(--df-primary-dark, #075443); font-size: 21px; letter-spacing: -.5px; }
.auth-page--wide .auth-brand img { width: 40px; height: 40px; }
.auth-page--wide .auth-heading h1 { margin: 0 0 16px; color: var(--df-primary-dark, #075443); font-size: 38px; font-weight: 600; line-height: 1.2; letter-spacing: -1px; }
.auth-page--wide .auth-heading p { max-width: 340px; font-size: 16px; line-height: 1.65; }
.auth-page--wide .auth-content { min-width: 0; padding-top: 8px; }
.auth-page--wide .auth-google { min-height: 46px; border-color: var(--df-border, #dce7e1); border-radius: 10px; font-size: 14px; }
.auth-page--wide .auth-divider { margin: 24px 0; }
.auth-page--wide .auth-field { margin-bottom: 24px; }
.auth-page--wide .auth-input { min-height: 54px; padding: 14px 16px; border-color: var(--df-primary-border, #b8d8c6); border-radius: 10px; font-size: 16px; }
.auth-page--wide .auth-input:focus { border-color: var(--auth-blue); outline: 2px solid var(--auth-blue); outline-offset: -2px; }
.auth-page--wide .auth-outlined-field { position: relative; }
.auth-page--wide .auth-outlined-field > label { position: absolute; top: 15px; left: 12px; margin: 0; padding: 0 4px; background: #fff; color: var(--auth-muted); font-size: 16px; font-weight: 400; line-height: 24px; pointer-events: none; transition: top .12s, font-size .12s; }
.auth-page--wide .auth-outlined-field > .auth-input:focus ~ label,
.auth-page--wide .auth-outlined-field > .auth-input:not(:placeholder-shown) ~ label { top: -9px; font-size: 12px; line-height: 18px; }
.auth-page--wide .auth-outlined-field > .auth-input:focus ~ label { color: var(--auth-blue); }
.auth-page--wide .auth-input[aria-invalid="true"] { border-color: #b3261e; }
.auth-page--wide .auth-outlined-field > .auth-input[aria-invalid="true"] ~ label { color: #b3261e; }
.auth-page--wide .auth-password .auth-input { padding-right: 78px; }
.auth-page--wide .auth-password-toggle { top: 8px; right: 8px; background: transparent; }
.auth-page--wide .auth-hint { margin-top: 8px; padding: 0 4px; font-size: 12px; }
.auth-page--signin .auth-row { margin: 6px 0 0; font-size: 13px; }
.auth-page--signin .auth-check { align-items: center; font-size: 13px; }
.auth-page--signin .auth-check input { margin-top: 0; }
.auth-page--signin .auth-switch { margin-top: 22px; font-size: 13px; }
.auth-page--wide .auth-terms { margin: 0; color: var(--auth-muted); font-size: 12px; line-height: 1.75; }
.auth-page--wide .auth-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; }
.auth-page--wide .auth-actions > a { flex: 0 0 auto; padding: 10px 0; border-radius: 4px; font-size: 14px; font-weight: 600; text-decoration: none; }
.auth-page--wide .auth-primary { width: auto; min-width: 160px; min-height: 46px; margin: 0; padding: 11px 24px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.auth-page--wide .auth-primary:hover { background: var(--df-primary-hover, #00785e); }
.auth-page--wide .auth-footer { justify-content: flex-end; width: 100%; max-width: 1040px; margin-top: 24px; padding: 0 16px; }
@media (max-width: 839px) {
    body.auth-page--wide { padding: 32px 20px; }
    .auth-page--wide .auth-card { grid-template-columns: minmax(0, 1fr); gap: 32px; max-width: 600px; padding: 36px; }
    .auth-page--wide .auth-brand { margin-bottom: 28px; }
    .auth-page--wide .auth-heading h1 { margin-bottom: 12px; font-size: 36px; }
    .auth-page--wide .auth-heading p { max-width: none; font-size: 15px; }
    .auth-page--wide .auth-content { padding-top: 0; }
    .auth-page--wide .auth-footer { max-width: 600px; }
}
@media (max-width: 599px) {
    body.auth-page--wide { justify-content: flex-start; padding: 16px 0 24px; background: #fff; }
    .auth-page--wide .auth-card { gap: 28px; max-width: none; padding: 24px; border: 0; border-radius: 0; box-shadow: none; }
    .auth-page--wide .auth-heading h1 { font-size: 32px; }
    .auth-page--wide .auth-brand { margin-bottom: 28px; font-size: 20px; }
    .auth-page--wide .auth-brand img { width: 36px; height: 36px; }
    .auth-page--wide .auth-footer { justify-content: center; margin-top: 20px; padding: 0 24px; }
}
@media (max-width: 359px) {
    .auth-page--wide .auth-card { padding: 20px; }
    .auth-page--wide .auth-actions { gap: 12px; }
    .auth-page--wide .auth-actions > a { font-size: 13px; }
    .auth-page--wide .auth-primary { min-width: 136px; padding-right: 16px; padding-left: 16px; }
}
@media (prefers-reduced-motion: reduce) { .auth-page--wide .auth-outlined-field > label { transition: none; } }
