.auth-page { min-height: 100dvh; display: grid; place-items: center; padding: 36px 20px; background: #f8f8f8; }
.auth-logo { position: absolute; top: 24px; left: 28px; display: block; }
.auth-logo img { display: block; width: 142px; height: auto; }
.auth-card { width: min(100%, 420px); padding: 34px; border: 1px solid var(--border); border-radius: 16px; background: white; box-shadow: 0 18px 48px rgba(0,0,0,.06); }
.auth-eyebrow { margin: 0 0 8px; color: var(--text-2); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.auth-card h1 { margin: 0; font-size: 28px; line-height: 1.2; letter-spacing: -.035em; }
.auth-subtitle { margin: 8px 0 22px; color: var(--text-2); font-size: 14px; }
.auth-google { min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 11px; border: 1px solid var(--border-strong); border-radius: 9px; color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; }
.auth-google:hover { background: var(--bg-subtle); }
.auth-google-mark { color: #4285f4; font-size: 19px; font-weight: 700; }
.auth-google-disclosure, .auth-legal { margin: 10px 0 16px; color: var(--text-2); font-size: 12px; line-height: 1.55; text-align: center; }
.auth-google-disclosure a, .auth-legal a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--text-3); font-size: 12px; }
.auth-divider::before, .auth-divider::after { height: 1px; flex: 1; background: var(--border); content: ""; }
.auth-form, .account-password { display: grid; gap: 15px; }
.auth-form label, .account-password label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.auth-form input, .account-password input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 8px; background: white; font-size: 14px; }
.auth-form input:focus, .account-password input:focus { outline: 2px solid rgba(9,9,11,.16); border-color: var(--text-2); }
.auth-optional, .auth-hint { color: var(--text-3); font-size: 12px; font-weight: 400; }
.auth-hint { margin: -10px 0 0; }
.auth-submit, .account-password button { min-height: 46px; border-radius: 8px; background: var(--primary); color: white; font-size: 14px; font-weight: 600; }
.auth-submit:hover, .account-password button:hover { background: var(--primary-hover); }
.auth-error, .auth-form-error { margin: 0 0 14px; padding: 10px 12px; border: 1px solid var(--danger-border); border-radius: 8px; background: var(--danger-bg); color: var(--danger); font-size: 13px; }
.auth-switch { margin: 20px 0 0; color: var(--text-2); text-align: center; font-size: 13px; }
.auth-switch button { color: var(--text); font-weight: 600; text-decoration: underline; }
.auth-home { display: block; margin-top: 24px; color: var(--text-3); text-align: center; font-size: 12px; text-decoration: none; }
.account-menu { position: fixed; z-index: 9000; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); max-width: min(290px, calc(100vw - 32px)); font-size: 13px; }
.account-menu > summary { overflow: hidden; padding: 10px 14px; border: 1px solid var(--border-strong); border-radius: 999px; background: white; box-shadow: 0 4px 18px rgba(0,0,0,.1); cursor: pointer; text-overflow: ellipsis; white-space: nowrap; }
.account-panel { position: absolute; right: 0; bottom: calc(100% + 8px); width: min(290px, calc(100vw - 32px)); padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: white; box-shadow: 0 12px 36px rgba(0,0,0,.12); }
.account-email { margin: 0 0 12px; color: var(--text-2); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.account-email strong { color: var(--text); font-weight: 600; }
.account-link { display: block; margin: 0 0 14px; color: var(--text); font-weight: 600; }
.account-password { padding: 12px 0; border-top: 1px solid var(--border); }
.account-password button { min-height: 38px; }
.account-message { margin: 0; color: var(--text-2); font-size: 12px; }
.account-logout { margin-top: 14px; padding-top: 12px; width: 100%; border-top: 1px solid var(--border); color: var(--danger); text-align: left; font-weight: 600; }
@media (max-width: 520px) {
  .auth-page { align-items: start; padding: 92px 16px 24px; }
  .auth-logo { left: 18px; top: 22px; }
  .auth-card { padding: 26px 22px; }
}
