/* ========================================================================
 * 邮箱认证：独立作用域，沿用 Omnivideo 的黑底、大字号与白色主按钮
 * ====================================================================== */

.email-auth-form [hidden], .email-auth-code-step[hidden], .email-auth-back[hidden],
.email-auth-page [hidden], #email-login-form[hidden] { display: none !important; }
.email-auth-page { display: grid; place-items: center; min-height: 65vh; padding: 64px 20px; }
.email-auth-card { width: min(100%, 560px); }
.email-auth-page-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 32px; color: #a1a1aa; font-size: 16px; }
.email-auth-page-back svg { width: 20px; height: 20px; }
.email-auth-page-back:hover { color: #fafafa; }
.email-auth-heading { margin-bottom: 32px; text-align: center; }
.email-auth-brand { display: grid; place-items: center; margin-bottom: 24px; }
.email-auth-brand img { width: 64px; height: 64px; object-fit: contain; }
.email-auth-card h1 { margin: 0; text-align: center; color: #fafafa; font-size: clamp(28px, 4vw, 36px); font-weight: 700; line-height: 1.2; }
.email-auth-intro { margin: 16px 0 0; color: #a1a1aa; font-size: 18px; line-height: 1.6; }
.email-auth-form, .email-auth-code-step { display: flex; flex-direction: column; gap: 20px; }
.email-auth-input { box-sizing: border-box; width: 100%; min-width: 0; min-height: 64px; padding: 18px 20px; border: 1px solid #27272a; border-radius: 12px; background: #09090b; color: #fafafa; font: inherit; font-size: 20px; outline: none; transition: border-color .15s; }
.email-auth-input::placeholder { color: #71717a; }
.email-auth-input:focus { border-color: #a1a1aa; }
.email-auth-input:read-only { color: #a1a1aa; }
.email-auth-password, .email-auth-address { position: relative; }
.email-auth-password input { padding-inline-end: 64px; }
.email-auth-reveal { position: absolute; inset-inline-end: 10px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; color: #a1a1aa; cursor: pointer; }
.email-auth-reveal svg, .email-auth-back svg { width: 24px; height: 24px; }
.email-auth-reveal[aria-pressed="true"] .email-auth-eye-slash { display: none; }
.email-auth-button { box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 64px; padding: 16px 20px; border: 1px solid #fafafa; border-radius: 12px; background: #fafafa; color: #09090b; font: inherit; font-size: 22px; font-weight: 600; cursor: pointer; }
.email-auth-button:hover:not(:disabled) { opacity: .9; }
.email-auth-button:disabled { border-color: #27272a; background: #27272a; color: #71717a; cursor: default; }
.email-auth-button[aria-busy="true"] { opacity: .65; }
.email-auth-secondary { margin-top: 16px; background: #09090b; color: #e4e4e7; box-shadow: inset 0 0 0 1px #27272a; }
.email-auth-secondary:hover { opacity: .9; }
.email-auth-secondary svg { flex-shrink: 0; }
.email-auth-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; margin-top: 8px; color: #a1a1aa; font-size: 16px; line-height: 1.6; }
.email-auth-footer > a { text-decoration: underline; text-underline-offset: 4px; }
.email-auth-footer a:hover, .email-auth-page-footer a:hover { color: #fafafa; }
.email-auth-footer .email-auth-accent { color: var(--theme-color, #fafafa); }
.email-auth-error { margin: 0; font-size: 16px; line-height: 1.6; color: #fca5a5; }
.email-auth-note { margin: 0; font-size: 16px; line-height: 1.6; color: #a1a1aa; }
.email-auth-page-footer { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 28px; color: #a1a1aa; font-size: 16px; }
.email-auth-page-footer a { color: var(--theme-color, #fafafa); }
.email-auth-page-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.email-auth-text-button { align-self: center; padding: 4px; border: 0; background: transparent; color: #e4e4e7; font: inherit; font-size: 16px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.email-auth-text-button:disabled { color: #71717a; text-decoration: none; cursor: default; }
.email-auth-change { position: absolute; inset-inline-end: 12px; top: 50%; transform: translateY(-50%); padding: 8px; border: 0; background: #09090b; color: #e4e4e7; font-size: 16px; cursor: pointer; }
.email-auth-address:has(.email-auth-change:not([hidden])) input { padding-inline-end: 100px; }
.email-auth-back { position: absolute; top: 10px; inset-inline-start: 12px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; background: transparent; color: #a1a1aa; cursor: pointer; }
#login-panel.email-mode { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; }
#login-panel.email-mode #oauth-login-options, #login-panel.email-mode #continue-email-btn,
#login-panel.email-mode #login-benefits { display: none !important; }
.email-auth-form button:focus-visible, .email-auth-form a:focus-visible, .email-auth-back:focus-visible,
.email-auth-page-footer a:focus-visible, .email-auth-page-back:focus-visible, #continue-email-btn:focus-visible { outline: 2px solid #fafafa; outline-offset: 4px; }
@media (max-width: 767px) {
    .email-auth-footer { flex-direction: column; align-items: center; justify-content: center; gap: 8px; margin-top: 0; font-size: 14px; line-height: 1.5; text-align: center; }
    .email-auth-page-footer { font-size: 14px; }
}
@media (max-width: 480px) {
    .email-auth-page { padding: max(32px, env(safe-area-inset-top)) 20px max(32px, env(safe-area-inset-bottom)); }
    .email-auth-page-back { margin-bottom: 24px; }
    .email-auth-brand img { width: 48px; height: 48px; }
    .email-auth-intro { font-size: 16px; }
    .email-auth-input { min-height: 60px; font-size: 18px; }
    .email-auth-button { min-height: 60px; font-size: 20px; }
}
