/* ===== Light Theme Login Styles (与首页主题一致) ===== */
/* 注意：这些样式仅作用于登录页面容器内，不影响后台管理界面 */

:root {
    --login-bg: #ffffff;
    --login-bg2: #f8fafc;
    --login-card: #ffffff;
    --login-border: #e2e8f0;
    --login-border2: #cbd5e1;
    --login-text: #1e293b;
    --login-text2: #475569;
    --login-text3: #64748b;
    --login-accent: #3b82f6;
    --login-accent2: #2563eb;
    --login-purple: #8b5cf6;
    --login-green: #10b981;
}

/* 隐藏非输入元素的光标 */
.login-container *,
.login-wrapper * { caret-color: transparent; }
.login-container input,
.login-container textarea,
.login-container select,
.login-wrapper input,
.login-wrapper textarea,
.login-wrapper select { caret-color: auto; }

/* Shared light login background */
.login-container,
.login-wrapper {
    display: flex; justify-content: center; align-items: center; flex-direction: column;
    width: 100%; min-height: 100vh;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0fdf4 100%);
    position: relative;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    cursor: default;
}

/* Particle canvas for login pages */
.login-particles {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none; outline: none;
}

/* Glow effect behind card */
.login-glow {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 700px; height: 500px;
    background: radial-gradient(ellipse at 40% 50%, rgba(59,130,246,0.15) 0%, rgba(139,92,246,0.08) 30%, rgba(6,182,212,0.04) 50%, transparent 70%);
    pointer-events: none; z-index: 0;
    animation: loginGlowPulse 8s ease-in-out infinite;
}
.login-glow.agent-glow {
    background: radial-gradient(ellipse at 40% 50%, rgba(139,92,246,0.15) 0%, rgba(236,72,153,0.08) 30%, rgba(6,182,212,0.04) 50%, transparent 70%);
}
@keyframes loginGlowPulse {
    0%,100% { opacity: 0.6; transform: translate(-50%,-50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%,-50%) scale(1.1); }
}

/* Back home link */
.back-home {
    position: absolute; top: 28px; left: 28px; z-index: 10;
    color: var(--login-text2); text-decoration: none; font-size: 13px;
    padding: 8px 18px; border-radius: 10px;
    border: 1px solid var(--login-border);
    background: rgba(255,255,255,0.8); backdrop-filter: blur(12px);
    transition: all 0.3s;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.back-home:hover { 
    color: var(--login-accent); 
    border-color: var(--login-accent); 
    background: rgba(255,255,255,0.95);
    box-shadow: 0 4px 16px rgba(59,130,246,0.12);
}

/* Login card */
.login-box {
    position: relative; z-index: 1;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(24px);
    border: 1px solid var(--login-border);
    border-radius: 20px;
    padding: 44px 40px;
    width: 420px; max-width: 92vw;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.04);
    transition: all 0.3s;
}
.login-box:hover { 
    border-color: rgba(59,130,246,0.3); 
    box-shadow: 0 24px 80px rgba(59,130,246,0.12), 0 1px 3px rgba(0,0,0,0.04);
}

/* Agent login card accent */
.login-box.agent-card:hover { 
    border-color: rgba(139,92,246,0.3); 
    box-shadow: 0 24px 80px rgba(139,92,246,0.12), 0 1px 3px rgba(0,0,0,0.04);
}

/* Title */
.login-box h2 {
    text-align: center; margin-bottom: 8px;
    font-size: 24px; font-weight: 700; color: var(--login-text);
    letter-spacing: -0.5px;
}
.subtitle {
    color: var(--login-text3); font-size: 14px; margin-bottom: 28px; text-align: center;
}

/* Form inputs - light theme */
.login-box .form-group { margin-bottom: 18px; }
.login-box .form-group label {
    display: block; margin-bottom: 8px;
    color: var(--login-text2); font-size: 13px; font-weight: 600;
}
.login-box .form-group input {
    width: 100%; padding: 12px 16px;
    background: var(--login-bg);
    border: 1px solid var(--login-border);
    border-radius: 12px; font-size: 14px;
    color: var(--login-text); transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    box-sizing: border-box;
}
.login-box .form-group input::placeholder { color: var(--login-text3); }
.login-box .form-group input:focus {
    outline: none;
    border-color: var(--login-accent);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1), 0 1px 3px rgba(0,0,0,0.04);
    background: #fff;
}
.login-box.agent-card .form-group input:focus {
    border-color: var(--login-purple);
    box-shadow: 0 0 0 3px rgba(139,92,246,0.1), 0 1px 3px rgba(0,0,0,0.04);
}

/* Login button */
.login-box .btn-login {
    width: 100%; padding: 14px; margin-top: 8px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: #fff; border: none; border-radius: 12px;
    font-size: 15px; font-weight: 600; cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 6px 24px rgba(59,130,246,0.3);
}
.login-box .btn-login:hover {
    box-shadow: 0 10px 36px rgba(59,130,246,0.4);
    transform: translateY(-2px);
}
.login-box .btn-login:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* Agent button accent */
.login-box.agent-card .btn-login {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    box-shadow: 0 6px 24px rgba(139,92,246,0.3);
}
.login-box.agent-card .btn-login:hover {
    box-shadow: 0 10px 36px rgba(139,92,246,0.4);
}
.login-box.agent-card .btn-register {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 6px 24px rgba(16,185,129,0.3);
}
.login-box.agent-card .btn-register:hover {
    box-shadow: 0 10px 36px rgba(16,185,129,0.4);
}

/* Error message */
.login-box .error-msg {
    color: #ef4444; text-align: center; margin-top: 16px; font-size: 13px; min-height: 18px;
    font-weight: 500;
}

/* Form footer */
.form-footer { margin-top: 20px; text-align: center; font-size: 13px; }
.form-footer span { color: var(--login-text3); }
.form-footer a { 
    color: var(--login-accent); text-decoration: none; margin-left: 6px; 
    transition: color 0.2s; font-weight: 600;
}
.form-footer a:hover { color: var(--login-accent2); }
.form-footer.agent-footer a { color: var(--login-purple); }
.form-footer.agent-footer a:hover { color: #7c3aed; }

/* Required mark */
.required { color: #ef4444; }

/* Logo icon above title */
.login-logo {
    width: 56px; height: 56px; margin: 0 auto 20px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    border-radius: 16px; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(59,130,246,0.35);
}
.login-logo.agent-logo {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    box-shadow: 0 8px 24px rgba(139,92,246,0.35);
}
.login-logo svg { width: 28px; height: 28px; }

/* Captcha image light theme */
.login-box .captcha-group img {
    background: var(--login-bg2) !important;
    border: 1px solid var(--login-border);
}

/* Responsive */
@media(max-width:480px) {
    .login-box { padding: 36px 28px; width: 92vw; }
    .back-home { top: 16px; left: 16px; }
}
