.auth { width: min(100%, 400px); margin: 0 auto; padding: 0 4px; }
.auth-brand { display: flex; align-items: center; justify-content: center; height: 200px; overflow: hidden; margin-bottom: -32px; }
.auth-brand img { display: block; width: 300px; max-width: 100%; height: 200px; object-fit: contain; }
.auth h1 { margin: 0; text-align: center; font: 700 30px/1.2 Georgia, 'Times New Roman', serif; }
.auth-intro { margin: 12px 0 28px; text-align: center; font-size: 15px; line-height: 1.6; color: var(--muted); }
.auth-form { display: flex; flex-direction: column; gap: 20px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label { font-size: 14px; line-height: 1.4; font-weight: 600; }
.form-field input { width: 100%; min-height: 48px; padding: 12px; border: 1px solid var(--input-border); border-radius: 6px; background: var(--page); color: var(--text); font-size: 16px; }
.password-field { position: relative; }
.password-field input { padding-right: 52px; }
.password-field button { position: absolute; top: 2px; right: 2px; display: grid; place-items: center; min-height: 44px; min-width: 44px; padding: 8px; border: 0; border-radius: 4px; background: var(--page); color: var(--text); }
.password-field button[aria-pressed="true"]::after { content: ''; position: absolute; width: 24px; height: 2px; background: currentColor; transform: rotate(45deg); box-shadow: 0 -2px 0 var(--page); }
.password-field button:hover { background: var(--surface); }
.field-help { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.auth-options { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; }
.checkbox-field { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.checkbox-field input { width: 18px; height: 18px; margin: 0; }
.auth-options a { display: flex; align-items: center; min-height: 44px; text-decoration: underline; }
.auth-submit { width: 100%; border: 0; background: var(--rose-button-bg); color: var(--rose-button-text); }
.auth-submit:hover { background: var(--rose-button-hover); }
.auth-submit:disabled { cursor: wait; opacity: .65; }
.auth-switch { margin: 24px 0 12px; text-align: center; font-size: 14px; line-height: 1.6; }
.auth-switch a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 600; text-decoration: underline; }
.auth-privacy { display: flex; align-items: center; justify-content: center; min-height: 44px; font-size: 13px; color: var(--muted); text-decoration: underline; }
.form-message { margin: 0 0 24px; padding: 14px 16px; border: 1px solid var(--input-border); border-radius: 6px; background: var(--surface); font-size: 14px; line-height: 1.6; }
.auth-tabs { position: relative; display: flex; margin: 24px 0; border-bottom: 1px solid var(--line); }
.auth-tabs::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 50%; height: 2px; background: var(--text); transform: translateX(0); transition: transform 220ms cubic-bezier(.16, 1, .3, 1); pointer-events: none; }
.auth-tabs[data-view="register"]::after { transform: translateX(100%); }
.auth-tabs a { flex: 1; padding: 12px; min-height: 48px; text-align: center; font-size: 14px; }
.auth-tabs a[aria-current] { font-weight: 600; }
.auth-tabs[aria-busy="true"] { cursor: progress; }
.auth-google { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; padding: 12px; border: 1px solid var(--input-border); border-radius: 6px; background: var(--page); color: var(--text); font-size: 14px; font-weight: 500; }
.auth-google img { flex: 0 0 20px; width: 20px; height: 20px; }
.auth-google:hover:not(:disabled) { background: var(--surface); }
.auth-google:disabled { color: var(--muted); cursor: not-allowed; }
.auth-divider { display: flex; align-items: center; gap: 16px; margin: 20px 0; color: var(--muted); font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
@media (min-width: 641px) { .auth { padding-top: 12px; } .auth h1 { font-size: 34px; } }
@media (prefers-reduced-motion: reduce) { .auth-tabs::after { transition: none; } }
