/**
 * 主题: 纸鸢图床ZIH
 * 开发者: 白木
 * 开发者的博客: https://gl.baimu.live/
 *
 * 登录/注册页面样式 🔐
 *
 * @package Zhiyuan_Imgzus
 */

/* 字体由 template-auth.php 单独 enqueue */

/* 🎨 登录页面专用变量 - 映射项目统一变量 */
:root {
    --font-family: 'XNYT', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    --auth-neon-cyan: #0EA5E9;
    --auth-neon-pink: #E11D48;
    --auth-neon-green: #059669;

    --auth-bg-primary: #0a0a1a;
    --auth-bg-card: rgba(13, 13, 43, 0.95);
    --auth-bg-glass: rgba(14, 165, 233, 0.08);

    --auth-text-primary: #ffffff;
    --auth-text-secondary: #a0a0b8;
    --auth-text-muted: #6b6b80;

    --auth-border-glow: rgba(14, 165, 233, 0.3);
    --auth-transition-slow: 1.8s ease-in-out;
}

/* 🔄 重置和基础样式 */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: var(--font-family);
}

body {
    background: var(--auth-bg-primary);
    color: var(--auth-text-primary);
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
}

/* 🔒 隐藏WordPress管理栏 */
#wpadminbar {
    display: none !important;
}

html {
    margin-top: 0 !important;
    padding: 0 !important;
}

body.admin-bar {
    padding-top: 0 !important;
}

/* 🌌 背景动画效果 */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(225, 29, 72, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(14, 165, 233, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 20%, rgba(5, 150, 105, 0.08) 0%, transparent 50%);
    animation: authPulse 8s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes authPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* 🔷 网格背景 */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(14, 165, 233, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    pointer-events: none;
}

/* ==============================
   📦 主容器 + 渐变圆形
   ============================== */
.auth-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    z-index: 2;
    overflow: hidden;
}

/* 🔵 渐变圆形背景 */
.auth-container::before {
    content: "";
    position: absolute;
    height: min(2000px, 160vw);
    width: min(2000px, 160vw);
    top: -10%;
    right: 52%;
    transform: translateY(-50%);
    background-image: linear-gradient(-45deg, var(--auth-neon-pink) 0%, var(--auth-neon-cyan) 100%);
    transition: transform 1.8s ease-in-out 0.4s, background-image 1.8s ease-in-out 0.4s, right 0s linear 2.2s;
    border-radius: 50%;
    z-index: 6;
    box-shadow: 0 0 100px rgba(14, 165, 233, 0.5), 0 0 200px rgba(225, 29, 72, 0.3);
    pointer-events: none;
}

/* 🔄 注册模式 - 圆形等待表单淡出后移动 */
.auth-container.sign-up-mode::before {
    transform: translate(100%, -50%);
    right: 52%;
    background-image: linear-gradient(-45deg, var(--auth-neon-cyan) 0%, var(--auth-neon-green) 100%);
    transition: transform 1.8s ease-in-out 0.4s, background-image 1.8s ease-in-out 0.4s, right 0s linear 2.2s;
}

/* ==============================
   📝 表单区域 - 两个独立容器
   ============================== */

/* 📦 表单包装器 - 公共样式 */
.form-wrapper {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 📝 注册容器 - 始终在左侧 */
.form-wrapper-left {
    left: 0;
    right: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(calc(-50% + 30px));
    pointer-events: none;
    transition: opacity 0.4s ease 0s, transform 0.4s ease 0s, visibility 0s linear 0.4s;
}

/* 🔐 登录容器 - 始终在右侧 */
.form-wrapper-right {
    right: 0;
    left: auto;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s ease 0s, transform 0.4s ease 0s, visibility 0s linear 0s;
}

/* 🔵 切换到注册模式：登录容器淡出下移 */
.auth-container.sign-up-mode .form-wrapper-right {
    opacity: 0;
    visibility: hidden;
    transform: translateY(calc(-50% + 30px));
    pointer-events: none;
    transition: opacity 0.4s ease 0s, transform 0.4s ease 0s, visibility 0s linear 0.4s;
}

/* 🔵 切换到注册模式：注册容器淡入上移（等圆形动画结束） */
.auth-container.sign-up-mode .form-wrapper-left {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%);
    pointer-events: auto;
    transition: opacity 0.6s ease 2.2s, transform 0.6s ease 2.2s, visibility 0s linear 2.2s;
}

/* 🔵 从注册切回登录：注册容器淡出下移 */
.auth-container:not(.sign-up-mode) .form-wrapper-left {
    opacity: 0;
    visibility: hidden;
    transform: translateY(calc(-50% + 30px));
    pointer-events: none;
    transition: opacity 0.4s ease 0s, transform 0.4s ease 0s, visibility 0s linear 0.4s;
}

/* 🔵 从注册切回登录：登录容器淡入上移（等圆形动画结束） */
.auth-container:not(.sign-up-mode) .form-wrapper-right {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%);
    pointer-events: auto;
    transition: opacity 0.6s ease 2.2s, transform 0.6s ease 2.2s, visibility 0s linear 2.2s;
}

/* 📋 表单基础样式 */
.auth-form {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 5rem;
    width: 100%;
}

.auth-form form {
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ✨ 表单模块 - 向上渐显 */
@keyframes authFadeInUp {
    from {
        opacity: 0;
        transform: translateY(1.25rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form:not(.is-revealed) > .logo-container,
.auth-form:not(.is-revealed) > h2,
.auth-form:not(.is-revealed) > form > * {
    opacity: 0;
    transform: translateY(1.25rem);
}

.auth-form.is-revealed > .logo-container {
    animation: authFadeInUp 0.55s cubic-bezier(0.23, 1, 0.32, 1) both;
    animation-delay: 0ms;
}

.auth-form.is-revealed > h2 {
    animation: authFadeInUp 0.55s cubic-bezier(0.23, 1, 0.32, 1) both;
    animation-delay: 60ms;
}

.auth-form.is-revealed > form > * {
    animation: authFadeInUp 0.55s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.auth-form.is-revealed > form > *:nth-child(1) { animation-delay: 120ms; }
.auth-form.is-revealed > form > *:nth-child(2) { animation-delay: 180ms; }
.auth-form.is-revealed > form > *:nth-child(3) { animation-delay: 240ms; }
.auth-form.is-revealed > form > *:nth-child(4) { animation-delay: 300ms; }
.auth-form.is-revealed > form > *:nth-child(5) { animation-delay: 360ms; }
.auth-form.is-revealed > form > *:nth-child(6) { animation-delay: 420ms; }
.auth-form.is-revealed > form > *:nth-child(7) { animation-delay: 480ms; }

/* ==============================
   🎨 标题 + Logo
   ============================== */
.auth-form h2 {
    font-size: 2.2rem;
    color: var(--auth-text-primary);
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(14, 165, 233, 0.5);
    font-weight: 600;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.logo-container h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--auth-neon-cyan), var(--auth-neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 20px rgba(14, 165, 233, 0.5));
    font-weight: 700;
}

/* ==============================
   🏷️ 浮动标签输入框
   ============================== */
.floating-label-group {
    position: relative;
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 380px;
    min-height: 60px;
    --auth-input-height: 3.5rem;
}

.floating-label-group input {
    height: var(--auth-input-height);
    padding: 1.25rem 40px 0.75rem 1rem;
    background: var(--auth-bg-glass);
    border: 1px solid var(--auth-border-glow);
    border-radius: 0.625rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    color: var(--auth-text-primary);
    font-size: 1rem;
    outline: none;
    font-family: inherit;
    display: block;
}

.floating-label-group input::placeholder {
    color: transparent;
}

.floating-label-group input:focus {
    background: rgba(14, 165, 233, 0.15);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.3), 0 0 20px rgba(14, 165, 233, 0.2);
    border-color: var(--auth-neon-cyan);
    transform: translateY(-1px);
}

/* 🏷️ 浮动标签 */
.floating-label-group label {
    position: absolute;
    left: 1rem;
    top: calc(var(--auth-input-height) / 2);
    transform: translateY(-50%);
    pointer-events: none;
    transition: 0.2s ease all;
    color: var(--auth-text-muted);
    padding: 0 5px;
    z-index: 5;
    font-size: 1rem;
    background: transparent;
    line-height: 1.2;
    font-weight: 500;
    font-family: inherit;
}

.floating-label-group label::after {
    content: attr(data-default);
    transition: all 0.2s ease;
}

/* 浮动标签激活状态 */
.floating-label-group:has(.form-hint) {
    min-height: auto;
    margin-bottom: 1.5rem;
}

.floating-label-group input:focus ~ label,
.floating-label-group input:not(:placeholder-shown) ~ label {
    top: 0;
    left: 0.8rem;
    font-size: 0.75rem;
    transform: translateY(-50%);
    color: var(--auth-neon-cyan);
    background: var(--auth-bg-card);
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    text-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
}

.floating-label-group input:focus ~ label::after,
.floating-label-group input:not(:placeholder-shown) ~ label::after {
    content: attr(data-active);
}

/* 📝 表单提示 */
.form-hint {
    display: block;
    position: static;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--auth-text-muted);
    line-height: 1.5;
    pointer-events: none;
}

/* ==============================
   📧 注册验证码
   ============================== */
.verify-code-group input {
    padding-right: 7.25rem;
}

.send-code-btn {
    position: absolute;
    right: 0.35rem;
    top: calc(var(--auth-input-height) / 2);
    transform: translateY(-50%);
    z-index: 10;
    height: calc(var(--auth-input-height) - 0.5rem);
    max-height: calc(var(--auth-input-height) - 0.5rem);
    min-height: 0;
    padding: 0 0.85rem;
    border: 1px solid rgba(14, 165, 233, 0.45);
    border-radius: 0.5rem;
    background: rgba(14, 165, 233, 0.12);
    color: var(--auth-neon-cyan);
    font-size: 0.82rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, opacity 0.25s ease;
}

.send-code-btn:hover:not(:disabled) {
    background: rgba(14, 165, 233, 0.22);
    border-color: var(--auth-neon-cyan);
    color: #fff;
}

.send-code-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.send-code-btn.loading {
    pointer-events: none;
}

/* ==============================
   🔒 密码切换按钮
   ============================== */
.toggle-password {
    z-index: 10 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0.7 !important;
    position: absolute;
    right: 10px;
    top: calc(var(--auth-input-height) / 2);
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--auth-text-secondary);
    transition: opacity 0.3s ease, color 0.3s ease;
    padding: 4px;
    width: 24px;
    height: 24px;
}

.toggle-password svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.toggle-password:hover {
    opacity: 1 !important;
    color: var(--auth-neon-cyan);
}

.toggle-password:focus {
    outline: none !important;
    opacity: 1 !important;
}

/* 隐藏浏览器默认密码按钮 */
input[type="password"]::-ms-reveal {
    display: none;
}

input[type="password"]::-webkit-clear-button,
input[type="password"]::-webkit-inner-spin-button,
input[type="password"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ==============================
   🔘 记住我按钮 + 表单选项
   ============================== */

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 380px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    padding: 10px 0;
}

/* 🔘 记住我切换按钮 */
.remember-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--auth-text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

.remember-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(14, 165, 233, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.remember-toggle:hover {
    border-color: rgba(14, 165, 233, 0.3);
    color: var(--auth-text-primary);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.1);
}

.remember-toggle:hover::before {
    opacity: 1;
}

/* 🔘 记住我按钮 - 图标 */
.remember-toggle__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.remember-toggle__icon svg {
    width: 12px;
    height: 12px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

/* 🔘 记住我按钮 - 文字 */
.remember-toggle__text {
    position: relative;
    z-index: 1;
}

/* 🔘 记住我按钮 - 激活状态 */
.remember-toggle[data-active="true"] {
    background: rgba(14, 165, 233, 0.15);
    border-color: var(--auth-neon-cyan);
    color: var(--auth-neon-cyan);
    box-shadow: 
        0 0 20px rgba(14, 165, 233, 0.2),
        inset 0 0 10px rgba(14, 165, 233, 0.1);
}

.remember-toggle[data-active="true"] .remember-toggle__icon {
    background: var(--auth-neon-cyan);
    border-color: var(--auth-neon-cyan);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.5);
}

.remember-toggle[data-active="true"] .remember-toggle__icon svg {
    opacity: 1;
    transform: scale(1);
    color: var(--auth-bg-primary);
}

/* 🔘 记住我按钮 - 霓虹脉冲动画 */
@keyframes rememberNeonPulse {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(14, 165, 233, 0.2),
            inset 0 0 10px rgba(14, 165, 233, 0.1);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(14, 165, 233, 0.3),
            inset 0 0 15px rgba(14, 165, 233, 0.15);
    }
}

.remember-toggle[data-active="true"] {
    animation: rememberNeonPulse 2s ease-in-out infinite;
}

/* 🔗 忘记密码链接 */
.forgot-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--auth-text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.forgot-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(225, 29, 72, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.forgot-link::after {
    content: '?';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.3s ease;
}

.forgot-link:hover {
    color: var(--auth-neon-pink);
    border-color: rgba(225, 29, 72, 0.3);
    box-shadow: 0 0 15px rgba(225, 29, 72, 0.15);
}

.forgot-link:hover::before {
    opacity: 1;
}

.forgot-link:hover::after {
    background: var(--auth-neon-pink);
    border-color: var(--auth-neon-pink);
    color: var(--auth-bg-primary);
    box-shadow: 0 0 10px rgba(225, 29, 72, 0.5);
}

/* ==============================
   🔘 提交按钮
   ============================== */
.submit-btn {
    width: 200px;
    background: linear-gradient(135deg, var(--auth-neon-cyan), var(--auth-neon-pink));
    border: none;
    outline: none;
    height: 49px;
    border-radius: 55px;
    color: var(--auth-bg-primary);
    text-transform: uppercase;
    font-weight: 600;
    margin: 10px 0;
    cursor: pointer;
    transition: 0.5s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    font-family: inherit;
    box-shadow: 0 4px 6px rgba(14, 165, 233, 0.3);
    padding: 0;
    line-height: 1;
}

.submit-btn::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -100%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        135deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        rgba(255, 255, 255, 0.6),
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transform: rotate(30deg);
    transition: all 0.8s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.5);
}

.submit-btn:hover::after {
    left: 100%;
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.submit-btn:disabled:hover {
    box-shadow: 0 4px 6px rgba(14, 165, 233, 0.3);
}

.submit-btn:disabled:hover::after {
    left: -100%;
}

.submit-btn span {
    position: relative;
    z-index: 1;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* 🔐 按钮加载状态 */
.submit-btn.loading {
    color: transparent !important;
    pointer-events: none;
}

.submit-btn.loading::before {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-top: -8px;
    margin-left: -8px;
    border: 2px solid var(--auth-bg-primary);
    border-radius: 50%;
    border-top-color: transparent;
    animation: authBtnSpin 0.6s linear infinite;
    z-index: 2;
}

@keyframes authBtnSpin {
    to { transform: rotate(360deg); }
}

/* ==============================
   🔘 面板切换按钮
   ============================== */
.panel-btn {
    margin: 0;
    background: none;
    border: 2px solid var(--auth-text-primary);
    width: auto;
    height: auto;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    padding: 10px 50px;
    box-sizing: border-box;
    line-height: 1.2;
    border-radius: 22px;
    display: inline-block;
    color: var(--auth-text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

.panel-btn::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -100%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        135deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        rgba(255, 255, 255, 0.5),
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: rotate(30deg);
    transition: all 0.8s ease;
}

.panel-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--auth-neon-cyan);
    color: var(--auth-neon-cyan);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.3);
    transform: translateY(-2px);
}

.panel-btn:hover::after {
    left: 100%;
}

.panel-btn:active {
    transform: translateY(0);
}

/* ==============================
   💬 消息提示
   ============================== */
.auth-message {
    width: 100%;
    max-width: 380px;
    margin: 10px 0;
    padding: 8px 12px;
    border-radius: 6px;
    text-align: center;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
    font-size: 0.9rem;
    display: none;
    line-height: 1.4;
}

.auth-message.success {
    display: block;
    background: rgba(5, 150, 105, 0.15);
    border: 1px solid var(--auth-neon-green);
    color: var(--auth-neon-green);
}

.auth-message.error {
    display: block;
    background: rgba(225, 29, 72, 0.15);
    border: 1px solid var(--auth-neon-pink);
    color: var(--auth-neon-pink);
}

/* ==============================
   📦 双面板容器
   ============================== */
.panels-container {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    z-index: 20;
    pointer-events: none;
}

.panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
    gap: 1rem;
}

/* 左侧切换面板（登录模式 · 引导注册） */
.left-panel {
    padding: 2rem clamp(2rem, 8vw, 6rem) 2rem clamp(2rem, 6vw, 4rem);
    align-items: flex-end;
}

.left-panel .content {
    margin-left: 5px;
}

/* 右侧切换面板（注册模式 · 引导登录） */
.right-panel {
    padding: 2rem clamp(2rem, 6vw, 4rem) 2rem clamp(2rem, 8vw, 6rem);
    align-items: flex-start;
}

.right-panel .content {
    margin-right: 5px;
}

/* 🔘 面板内按钮需要可点击 */
.panel .panel-btn {
    pointer-events: auto;
}

.panel .content {
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 320px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(1.25rem);
    pointer-events: none;
}

.panel-image {
    width: 100%;
    max-width: 300px;
    filter: drop-shadow(0 0 20px rgba(14, 165, 233, 0.3));
    height: auto;
    display: block;
    flex-shrink: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(1.25rem);
}

/* 首次进入登录页：左侧引导模块静态显示 */
.auth-container:not(.panel-decor-hidden):not(.panel-decor-animate) .left-panel .content,
.auth-container:not(.panel-decor-hidden):not(.panel-decor-animate) .left-panel .panel-image {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.auth-container:not(.panel-decor-hidden):not(.panel-decor-animate) .left-panel .content {
    pointer-events: auto;
}

/* 圆角背景动画结束后：仅当前侧引导模块上移渐显 */
.auth-container.panel-decor-animate:not(.panel-decor-hidden):not(.sign-up-mode) .left-panel .content,
.auth-container.panel-decor-animate.sign-up-mode:not(.panel-decor-hidden) .right-panel .content {
    visibility: visible;
    pointer-events: auto;
    animation: authFadeInUp 0.55s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.auth-container.panel-decor-animate:not(.panel-decor-hidden):not(.sign-up-mode) .left-panel .panel-image,
.auth-container.panel-decor-animate.sign-up-mode:not(.panel-decor-hidden) .right-panel .panel-image {
    visibility: visible;
    animation: authFadeInUp 0.55s cubic-bezier(0.23, 1, 0.32, 1) both;
    animation-delay: 80ms;
}

/* 注册模式右侧才显示装饰图，避免登录引导图错位 */
.right-panel .panel-image {
    display: none;
}

.auth-container.sign-up-mode .right-panel .panel-image {
    display: block;
}

.left-panel .panel-image {
    display: block;
}

.auth-container.sign-up-mode .left-panel .panel-image {
    display: none;
}

/* 点击切换时立即隐藏当前引导面板（无过渡） */
.panel.is-hiding {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: none !important;
}

.panel.is-hiding .content,
.panel.is-hiding .panel-image {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(1.25rem) !important;
    animation: none !important;
    transition: none !important;
    transition-delay: 0s !important;
}

/* 切换过程中强制隐藏引导模块，等圆形动画结束后再上移渐显 */
.auth-container.panel-decor-hidden .panel .content,
.auth-container.panel-decor-hidden .panel-image {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(1.25rem) !important;
    animation: none !important;
    transition: none !important;
    transition-delay: 0s !important;
}

/* 登录模式：右侧面板始终隐藏 */
.auth-container:not(.sign-up-mode) .right-panel .panel-image,
.auth-container:not(.sign-up-mode) .right-panel .content {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    animation: none !important;
    transform: translateY(1.25rem);
}

/* 注册模式：左侧面板始终隐藏 */
.auth-container.sign-up-mode .left-panel .content,
.auth-container.sign-up-mode .left-panel .panel-image {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    animation: none !important;
    transform: translateY(1.25rem);
}

.panel h3 {
    font-weight: 600;
    line-height: 1;
    font-size: 1.5rem;
    text-shadow: 0 0 20px rgba(14, 165, 233, 0.5);
}

.panel p {
    font-size: 0.95rem;
    padding: 0.7rem 0;
    color: rgba(255, 255, 255, 0.8);
}

.auth-container.sign-up-mode .left-panel {
    pointer-events: none;
}

.auth-container.sign-up-mode .right-panel {
    pointer-events: all;
}

/* ==============================
   ✨ 粒子效果
   ============================== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--auth-neon-cyan);
    border-radius: 50%;
    animation: authParticle linear infinite;
    opacity: 0.5;
    box-shadow: 0 0 6px var(--auth-neon-cyan);
    pointer-events: none;
}

@keyframes authParticle {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-10vh) translateX(100px);
        opacity: 0;
    }
}

/* ==============================
   📝 版权信息
   ============================== */
.theme-copyright {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 12px;
    color: var(--auth-text-muted);
    z-index: 9999;
    line-height: 1.6;
    pointer-events: none;
}

.theme-copyright a {
    color: var(--auth-neon-cyan);
    text-decoration: none;
    transition: color 0.3s ease;
    pointer-events: auto;
}

.theme-copyright a:hover {
    color: var(--auth-neon-pink);
    text-shadow: 0 0 10px var(--auth-neon-pink);
}

.theme-copyright p {
    margin: 0;
    padding: 0;
}

/* ==============================
   📱 响应式设计
   ============================== */
@media (max-width: 870px) {
    html, body {
        overflow-x: hidden;
        overflow-y: auto;
        height: auto;
        min-height: 100%;
    }

    .auth-container {
        position: relative;
        min-height: 100dvh;
        min-height: 100svh;
        height: auto;
        overflow: visible;
        display: flex;
        flex-direction: column;
        padding: 0;
    }

    /* 渐变圆形改为背景装饰，不占布局空间 */
    .auth-container::before {
        position: fixed;
        width: min(120vw, 520px);
        height: min(120vw, 520px);
        top: -18%;
        left: 50%;
        right: auto;
        bottom: auto;
        transform: translateX(-50%);
        opacity: 0.4;
        z-index: 0;
        transition: top 0.6s ease, bottom 0.6s ease, background-image 0.6s ease, opacity 0.6s ease;
    }

    .auth-container.sign-up-mode::before {
        top: auto;
        bottom: -18%;
        transform: translateX(-50%);
        background-image: linear-gradient(-45deg, var(--auth-neon-cyan) 0%, var(--auth-neon-green) 100%);
    }

    /* 表单居中：占据面板上方剩余空间并居中显示 */
    .form-wrapper {
        position: relative;
        order: 1;
        width: 100%;
        top: auto;
        bottom: auto;
        left: auto;
        right: auto;
        transform: none !important;
        height: auto;
        flex: 1 1 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: max(1rem, env(safe-area-inset-top)) 0 1rem;
        z-index: 10;
        transition: opacity 0.35s ease;
    }

    .auth-container:not(.sign-up-mode) .form-wrapper-right {
        opacity: 1;
        pointer-events: auto;
        display: flex;
    }

    .auth-container:not(.sign-up-mode) .form-wrapper-left {
        display: none;
        opacity: 0;
        pointer-events: none;
    }

    .auth-container.sign-up-mode .form-wrapper-left {
        opacity: 1;
        pointer-events: auto;
        display: flex;
        transition: opacity 0.35s ease;
    }

    .auth-container.sign-up-mode .form-wrapper-right {
        display: none;
        opacity: 0;
        pointer-events: none;
    }

    .auth-form {
        padding: 0 1.25rem;
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
    }

    .logo-container {
        margin-bottom: 0.75rem;
    }

    .logo-container h1 {
        font-size: 1.75rem;
    }

    .auth-form h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .floating-label-group {
        max-width: 100%;
        margin-bottom: 1.1rem;
        min-height: 54px;
        --auth-input-height: 3.25rem;
    }

    .floating-label-group:has(.form-hint) {
        min-height: auto;
        margin-bottom: 1.25rem;
    }

    .form-hint {
        margin-top: 0.4rem;
        font-size: 0.7rem;
        line-height: 1.45;
    }

    .floating-label-group input {
        height: var(--auth-input-height);
    }

    .form-options {
        margin-bottom: 1rem;
        padding: 6px 0;
    }

    .submit-btn {
        width: 100%;
        max-width: 380px;
        margin: 6px 0;
    }

    /* 切换面板：底部紧凑条 */
    .panels-container {
        order: 2;
        position: relative;
        width: 100%;
        height: auto;
        flex: 0 0 auto;
        display: block;
        padding: 0.75rem 1rem max(1rem, env(safe-area-inset-bottom));
        z-index: 20;
        pointer-events: none;
    }

    .panel {
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0.875rem 1rem;
        grid-column: auto;
        grid-row: auto;
        background: rgba(13, 13, 43, 0.6);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border-top: 1px solid rgba(14, 165, 233, 0.15);
        border-radius: 1rem 1rem 0 0;
    }

    .auth-container:not(.sign-up-mode) .left-panel {
        display: flex;
    }

    .auth-container.sign-up-mode .right-panel {
        display: flex;
        pointer-events: all;
    }

    .panel.is-hiding {
        display: none !important;
    }

    .panel-image {
        display: none;
    }

    .panel .content {
        padding: 0;
        margin: 0;
        gap: 0.5rem;
    }

    .auth-container:not(.panel-decor-animate) .panel .content,
    .auth-container.panel-decor-hidden .panel .content {
        transform: none !important;
    }

    .panel h3 {
        font-size: 0.95rem;
    }

    .panel p {
        font-size: 0.75rem;
        padding: 0;
        line-height: 1.4;
    }

    .panel-btn {
        font-size: 0.8rem;
        padding: 8px 28px;
        margin-top: 0.25rem;
    }

    .auth-container:not(.panel-decor-animate).sign-up-mode .left-panel .panel-image,
    .auth-container:not(.panel-decor-animate).sign-up-mode .left-panel .content,
    .auth-container:not(.panel-decor-animate).sign-up-mode .right-panel .panel-image,
    .auth-container:not(.panel-decor-animate).sign-up-mode .right-panel .content,
    .auth-container:not(.panel-decor-animate) .right-panel .panel-image,
    .auth-container:not(.panel-decor-animate) .right-panel .content {
        transform: none;
    }

    .theme-copyright {
        position: relative;
        transform: none;
        left: auto;
        bottom: auto;
        padding: 0.5rem 1rem 1rem;
        z-index: 5;
    }
}

@media (max-width: 570px) {
    .auth-form {
        padding: 0 1rem;
    }

    .auth-form h2 {
        font-size: 1.35rem;
    }

    .logo-container h1 {
        font-size: 1.5rem;
    }

    .form-options {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.625rem;
        align-items: center;
        justify-content: space-between;
    }

    .remember-toggle,
    .forgot-link {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .panel h3 {
        font-size: 0.875rem;
    }

    .panel p {
        font-size: 0.7rem;
    }

    .panel-btn {
        padding: 7px 24px;
        font-size: 0.75rem;
    }

    .panels-container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* ==============================
   💬 自定义验证提示气泡 - 赛博朋克风格
   ============================== */

/* 🔔 验证提示容器 */
.zy-validation-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 0;
    right: 0;
    padding: 10px 16px;
    background: rgba(13, 13, 43, 0.98);
    border: 1px solid var(--auth-neon-pink);
    border-radius: 8px;
    color: var(--auth-neon-pink);
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 
        0 0 20px rgba(225, 29, 72, 0.4),
        0 0 40px rgba(225, 29, 72, 0.15),
        0 4px 15px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* 🔺 提示箭头 */
.zy-validation-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 7px solid transparent;
    border-top-color: var(--auth-neon-pink);
}

/* ✨ 提示显示动画 */
.zy-validation-tooltip.zy-tooltip-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 🔴 输入框错误状态 */
.floating-label-group input.zy-input-invalid {
    border-color: var(--auth-neon-pink) !important;
    box-shadow: 
        0 0 0 3px rgba(225, 29, 72, 0.3),
        0 0 20px rgba(225, 29, 72, 0.2),
        inset 0 0 10px rgba(225, 29, 72, 0.05) !important;
    animation: zyShake 0.5s ease;
}

/* 🟢 输入框有效状态 */
.floating-label-group input.zy-input-valid {
    border-color: var(--auth-neon-green) !important;
    box-shadow: 
        0 0 0 3px rgba(5, 150, 105, 0.3),
        0 0 20px rgba(5, 150, 105, 0.2) !important;
}

/* 🔄 抖动动画 */
@keyframes zyShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* ✅ 验证图标 */
.floating-label-group .zy-validation-icon {
    position: absolute;
    right: 40px;
    top: calc(var(--auth-input-height) / 2);
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.floating-label-group input.zy-input-invalid ~ .zy-validation-icon.zy-icon-error {
    opacity: 1;
    color: var(--auth-neon-pink);
}

.floating-label-group input.zy-input-valid ~ .zy-validation-icon.zy-icon-success {
    opacity: 1;
    color: var(--auth-neon-green);
}

/* 🌟 霓虹闪烁效果（错误时） */
@keyframes zyNeonPulse {
    0%, 100% { 
        box-shadow: 
            0 0 0 3px rgba(225, 29, 72, 0.3),
            0 0 20px rgba(225, 29, 72, 0.2),
            inset 0 0 10px rgba(225, 29, 72, 0.05); 
    }
    50% { 
        box-shadow: 
            0 0 0 4px rgba(225, 29, 72, 0.45),
            0 0 30px rgba(225, 29, 72, 0.35),
            inset 0 0 15px rgba(225, 29, 72, 0.1); 
    }
}

.floating-label-group input.zy-input-invalid:not(:focus) {
    animation: zyShake 0.5s ease, zyNeonPulse 2s ease-in-out infinite;
}

/* 🔴 输入框聚焦时的错误状态 */
.floating-label-group input.zy-input-invalid:focus {
    border-color: var(--auth-neon-pink) !important;
    box-shadow: 
        0 0 0 3px rgba(225, 29, 72, 0.4),
        0 0 25px rgba(225, 29, 72, 0.25),
        inset 0 0 10px rgba(225, 29, 72, 0.05) !important;
    animation: none;
}

/* 📱 响应式调整 */
@media (max-width: 870px) {
    .zy-validation-tooltip {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
}

/* ⚡ 低性能 / 减少动态 - 全面关闭动画 */
html.no-animations .auth-form,
html.no-animations .auth-form > *,
html.no-animations .auth-form form > * {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

html.no-animations .auth-container:not(.sign-up-mode) .left-panel .panel-image,
html.no-animations .auth-container:not(.sign-up-mode) .left-panel .content,
html.no-animations .auth-container.sign-up-mode .right-panel .panel-image,
html.no-animations .auth-container.sign-up-mode .right-panel .content {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    animation: none !important;
    pointer-events: auto !important;
}

html.no-animations *,
html.no-animations *::before,
html.no-animations *::after {
    animation: none !important;
    transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
    .auth-form,
    .auth-form > *,
    .auth-form form > * {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
