/* ═══════════════════════════════════════════════════════════════
   NeoVision — 账户相关页面覆盖
   登录 / 注册 / 忘记密码 / 协议页 / 修改密码
   仅视觉层，不改变页面结构与逻辑
   ═══════════════════════════════════════════════════════════════ */

/* ── 登录页变量（login.css） ── */
html[data-ui-theme="neovision"] {
    --login-ink: #ffffff;
    --login-muted: #8a8a93;
    --login-subtle: #6e6e78;
    --login-surface: #050505;
    --login-field: #181818;
    --login-line: rgba(255, 255, 255, 0.1);
    --login-focus: rgba(255, 255, 255, 0.35);
    --login-success: #6ee7b7;
    --login-danger: #fca5a5;
}

html[data-ui-theme="neovision"] body {
    background: var(--login-surface);
    color: var(--login-ink);
    font-family: 'Inter', 'Microsoft YaHei UI', 'PingFang SC', Arial, sans-serif;
}

html[data-ui-theme="neovision"] .login-shell {
    background: var(--login-surface);
}

/* ── Hero：斜切 + 黑白高对比 + 漂浮 ── */
html[data-ui-theme="neovision"] .hero-panel {
    background: #0a0a0a;
    clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
}

html[data-ui-theme="neovision"] .hero-image {
    filter: grayscale(100%) contrast(1.1);
    animation: nv-account-float 6s ease-in-out infinite;
}

html[data-ui-theme="neovision"] .hero-shade {
    background: linear-gradient(
        105deg,
        rgba(5, 5, 5, 0.35) 0%,
        transparent 42%,
        rgba(5, 5, 5, 0.12) 100%
    );
}

@keyframes nv-account-float {
    0%, 100% { transform: scale(1.02) translateY(0); }
    50% { transform: scale(1.02) translateY(-15px); }
}

html[data-ui-theme="neovision"] .auth-panel {
    background: #050505;
}

html[data-ui-theme="neovision"] .wordmark {
    color: #ffffff;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}

html[data-ui-theme="neovision"] .wordmark span {
    font-weight: 500;
    letter-spacing: 0.02em;
}

html[data-ui-theme="neovision"] .wordmark small {
    color: #8a8a93;
    font-weight: 400;
}

html[data-ui-theme="neovision"] .language-switch {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 8px 14px;
    color: var(--login-muted);
    transition: color 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-ui-theme="neovision"] .language-switch:hover,
html[data-ui-theme="neovision"] .text-action:hover,
html[data-ui-theme="neovision"] .password-toggle:hover {
    color: #ffffff;
}

html[data-ui-theme="neovision"] .language-switch:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
}

html[data-ui-theme="neovision"] .text-action,
html[data-ui-theme="neovision"] .password-toggle {
    color: var(--login-muted);
}

html[data-ui-theme="neovision"] .password-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
}

html[data-ui-theme="neovision"] .intro h1 {
    color: #ffffff;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 300;
    letter-spacing: -0.03em;
}

html[data-ui-theme="neovision"] .intro > p:last-child {
    color: var(--login-muted);
    letter-spacing: 0.04em;
}

html[data-ui-theme="neovision"] .field-group label,
html[data-ui-theme="neovision"] .label-row {
    color: #e8e8ec;
    letter-spacing: 0.03em;
}

html[data-ui-theme="neovision"] .field-group input {
    background: var(--login-field);
    border: 1px solid var(--login-line);
    border-radius: 12px;
    color: #ffffff;
}

html[data-ui-theme="neovision"] .field-group input::placeholder {
    color: #5c5c66;
}

html[data-ui-theme="neovision"] .field-group input:hover {
    border-color: rgba(255, 255, 255, 0.16);
}

html[data-ui-theme="neovision"] .field-group input:focus {
    border-color: rgba(255, 255, 255, 0.28);
    background: #1e1e1e;
    box-shadow: none;
}

html[data-ui-theme="neovision"] .field-group input:-webkit-autofill,
html[data-ui-theme="neovision"] .field-group input:-webkit-autofill:hover,
html[data-ui-theme="neovision"] .field-group input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff;
    box-shadow: 0 0 0 1000px #181818 inset;
}

html[data-ui-theme="neovision"] .form-message {
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--login-muted);
}

html[data-ui-theme="neovision"] .form-message.error {
    background: rgba(127, 29, 29, 0.2);
    border-color: rgba(248, 113, 113, 0.25);
    color: var(--login-danger);
}

html[data-ui-theme="neovision"] .form-message.success {
    background: rgba(6, 78, 59, 0.2);
    border-color: rgba(110, 231, 183, 0.25);
    color: var(--login-success);
}

html[data-ui-theme="neovision"] .primary-button {
    background: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 999px;
    color: #050505;
    box-shadow: none;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        color 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-ui-theme="neovision"] .primary-button:hover:not(:disabled) {
    transform: translateY(-1px);
    background: #e4e4e7;
    border-color: #e4e4e7;
    box-shadow: none;
}

html[data-ui-theme="neovision"] .primary-button:active:not(:disabled) {
    transform: scale(0.95);
}

html[data-ui-theme="neovision"] .signup-line {
    color: var(--login-subtle);
}

html[data-ui-theme="neovision"] .signup-line a {
    color: #ffffff;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}

html[data-ui-theme="neovision"] .legal-copy {
    color: #5c5c66;
}

html[data-ui-theme="neovision"] .legal-copy a {
    color: #8a8a93;
}

html[data-ui-theme="neovision"] .footer {
    color: #5c5c66;
    letter-spacing: 0.16em;
}

html[data-ui-theme="neovision"] button:focus-visible,
html[data-ui-theme="neovision"] a:focus-visible,
html[data-ui-theme="neovision"] input:focus-visible {
    outline-color: rgba(255, 255, 255, 0.45);
}

/* ── 注册 / 忘记密码 / 协议页（.bf-account） ── */
html[data-ui-theme="neovision"] .bf-account {
    --bf-ivory: #121212;
    --bf-charcoal: #ffffff;
    --bf-gold: #8a8a93;
    --bf-border: rgba(255, 255, 255, 0.1);
    background: #050505;
    color: #e8e8ec;
    font-family: 'Inter', 'Microsoft YaHei UI', 'PingFang SC', Arial, sans-serif;
}

html[data-ui-theme="neovision"] .bf-account .bf-brand-zh,
html[data-ui-theme="neovision"] .bf-account .bf-welcome h1,
html[data-ui-theme="neovision"] .bf-account .bf-doc h1,
html[data-ui-theme="neovision"] .bf-account .bf-doc h2,
html[data-ui-theme="neovision"] .bf-account .bf-doc strong {
    color: #ffffff;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 300;
}

html[data-ui-theme="neovision"] .bf-account .bf-brand-en,
html[data-ui-theme="neovision"] .bf-account .bf-welcome p,
html[data-ui-theme="neovision"] .bf-account .bf-doc .meta,
html[data-ui-theme="neovision"] .bf-account .reg-sms-hint,
html[data-ui-theme="neovision"] .bf-account .bf-legal-links {
    color: #8a8a93;
}

html[data-ui-theme="neovision"] .bf-account .bf-welcome a,
html[data-ui-theme="neovision"] .bf-account .bf-doc-actions a {
    color: #e8e8ec;
    border-bottom-color: rgba(255, 255, 255, 0.25);
}

html[data-ui-theme="neovision"] .bf-account .bf-welcome a:hover,
html[data-ui-theme="neovision"] .bf-account .bf-doc-actions a:hover {
    color: #ffffff;
}

html[data-ui-theme="neovision"] .bf-account .bf-glass-card {
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: none;
}

html[data-ui-theme="neovision"] .bf-account .reg-field label {
    color: #e8e8ec;
}

html[data-ui-theme="neovision"] .bf-account .reg-field input {
    background: #181818;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
}

html[data-ui-theme="neovision"] .bf-account .reg-field input:focus {
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: none;
}

html[data-ui-theme="neovision"] .bf-account .reg-sms-btn {
    background: #181818;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: #e8e8ec;
}

html[data-ui-theme="neovision"] .bf-account .reg-sms-btn:hover:not(:disabled) {
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

html[data-ui-theme="neovision"] .bf-account .reg-submit {
    background: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 999px;
    color: #050505;
    box-shadow: none;
}

html[data-ui-theme="neovision"] .bf-account .reg-submit:hover {
    background: #e4e4e7;
    border-color: #e4e4e7;
}

html[data-ui-theme="neovision"] .bf-account .reg-submit:active {
    transform: scale(0.95);
}

html[data-ui-theme="neovision"] .bf-account .reg-error {
    background: rgba(127, 29, 29, 0.2);
    border-color: rgba(248, 113, 113, 0.25);
    color: #fca5a5;
}

html[data-ui-theme="neovision"] .bf-account .reg-sms-msg.is-error {
    color: #fca5a5;
}

html[data-ui-theme="neovision"] .bf-account .reg-sms-msg.is-success {
    color: #6ee7b7;
}

html[data-ui-theme="neovision"] .bf-account .bf-legal-links {
    border-top-color: rgba(255, 255, 255, 0.06);
}

html[data-ui-theme="neovision"] .bf-account .bf-legal-links a {
    color: #8a8a93;
}

html[data-ui-theme="neovision"] .bf-account .bf-legal-links a:hover {
    color: #ffffff;
}

html[data-ui-theme="neovision"] .bf-account .bf-doc p,
html[data-ui-theme="neovision"] .bf-account .bf-doc ul {
    color: #c8c8d0;
}

html[data-ui-theme="neovision"] .bf-account .bf-doc-actions {
    border-top-color: rgba(255, 255, 255, 0.06);
}

html[data-ui-theme="neovision"] .bf-account-topbar .language-switch {
    color: #8a8a93;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
}

html[data-ui-theme="neovision"] .bf-account-topbar .language-switch:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

/* ── 修改密码（Layout 内 .bf-workspace） ── */
html[data-ui-theme="neovision"] body.portal-beefur .portal-main .bf-workspace .portal-form-card {
    background: #121212;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: none;
}

html[data-ui-theme="neovision"] body.portal-beefur .portal-main .bf-workspace .portal-form-label {
    color: #e8e8ec;
}

html[data-ui-theme="neovision"] body.portal-beefur .portal-main .bf-workspace .portal-form-input {
    background: #181818;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

html[data-ui-theme="neovision"] body.portal-beefur .portal-main .bf-workspace .portal-form-input:focus {
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: none;
}

html[data-ui-theme="neovision"] body.portal-beefur .portal-main .bf-workspace .portal-form-error {
    color: #fca5a5;
}

html[data-ui-theme="neovision"] body.portal-beefur .portal-main .bf-workspace .portal-alert-success {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e8e8ec;
}

html[data-ui-theme="neovision"] body.portal-beefur .portal-main .bf-workspace .portal-alert-error {
    background: rgba(127, 29, 29, 0.2);
    border: 1px solid rgba(248, 113, 113, 0.25);
    color: #fca5a5;
}

html[data-ui-theme="neovision"] body.portal-beefur .portal-main .bf-workspace .portal-btn-primary {
    background: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 999px;
    color: #050505;
    box-shadow: none;
}

html[data-ui-theme="neovision"] body.portal-beefur .portal-main .bf-workspace .portal-btn-primary:hover {
    background: #e4e4e7;
    border-color: #e4e4e7;
    color: #050505;
}

@media (max-width: 860px) {
    html[data-ui-theme="neovision"] .hero-panel {
        clip-path: none;
    }

    html[data-ui-theme="neovision"] .hero-image {
        animation: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html[data-ui-theme="neovision"] .hero-image {
        animation: none;
    }
}
