@charset "UTF-8";

/* ========== 基础重置 ========== */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    overflow: hidden;
}

/* ========== 登录容器 ========== */
.login-wrapper {
    display: flex;
    width: 100%;
    height: 100vh;
    position: relative;
    background: linear-gradient(135deg, #0a1628 0%, #0d1f3c 30%, #0f2d5e 60%, #0a3d62 100%);
}

/* 背景动态粒子Canvas */
#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* 背景光晕装饰 */
.login-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(56, 189, 248, 0.08) 0%, transparent 70%);
    z-index: 0;
    animation: glowPulse 8s ease-in-out infinite;
}

.login-wrapper::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
    z-index: 0;
    animation: glowPulse 10s ease-in-out infinite reverse;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* ========== 左侧品牌区 ========== */
.brand-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 80px;
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 60%;
}

.brand-logo {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.brand-logo .logo-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-right: 18px;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
}

.brand-logo .logo-text {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #fff 0%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-logo .logo-version {
    font-size: 13px;
    color: rgba(147, 197, 253, 0.8);
    margin-left: 12px;
    padding: 2px 10px;
    background: rgba(59, 130, 246, 0.15);
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.brand-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.brand-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 50px;
    line-height: 1.6;
    max-width: 500px;
}

/* 统计卡片 */
.stats-row {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px 28px;
    backdrop-filter: blur(10px);
    min-width: 140px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-4px);
}

.stat-card .stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-card .stat-number span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 2px;
}

.stat-card .stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.stat-card .stat-icon {
    font-size: 20px;
    margin-bottom: 10px;
    display: block;
}

/* 功能标签 */
.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.feature-tag {
    padding: 8px 18px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 24px;
    font-size: 13px;
    color: rgba(147, 197, 253, 0.9);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.feature-tag:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
}

.feature-tag .tag-dot {
    width: 6px;
    height: 6px;
    background: #3b82f6;
    border-radius: 50%;
    animation: dotPulse 2s ease infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ========== 右侧登录区 ========== */
.login-section {
    width: 480px;
    min-width: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    padding: 40px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 48px 40px;
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #06b6d4, #3b82f6);
    background-size: 200% 100%;
    animation: borderGlow 3s linear infinite;
}

@keyframes borderGlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.login-card-header {
    text-align: center;
    margin-bottom: 36px;
}

.login-card-header h2 {
    font-size: 26px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px 0;
}

.login-card-header p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* 表单样式 */
.login-form .form-item {
    margin-bottom: 20px;
    position: relative;
}

.login-form .form-item label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.login-form .form-input {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.login-form .form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
    -webkit-text-fill-color: rgba(255, 255, 255, 0.3);
}

.login-form .form-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.login-form .form-input:-webkit-autofill,
.login-form .form-input:-webkit-autofill:hover,
.login-form .form-input:-webkit-autofill:focus,
.login-form .form-input:-webkit-autofill:active {
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff;
    transition: background-color 99999s ease-out;
    box-shadow: 0 0 0 1000px rgba(15, 45, 94, 0.85) inset !important;
    -webkit-box-shadow: 0 0 0 1000px rgba(15, 45, 94, 0.85) inset !important;
}

.login-form .form-icon {
    position: absolute;
    left: 16px;
    top: 39px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 16px;
    pointer-events: none;
}

/* 验证码 */
.verify-row {
    display: flex;
    gap: 12px;
}

.verify-row .form-input {
    flex: 1;
}

.verify-row .captcha-box {
    width: 120px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.verify-row .captcha-box:hover {
    border-color: rgba(59, 130, 246, 0.4);
}

.verify-row .captcha-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 提交按钮 */
.login-btn {
    width: 100%;
    height: 50px;
    margin-top: 10px;
    background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 底部版权 */
.login-footer {
    text-align: center;
    margin-top: 28px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    .brand-section {
        display: none;
    }
    .login-section {
        width: 100%;
        min-width: auto;
    }
    .login-wrapper {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 36px 24px;
        border-radius: 20px;
    }
    .login-section {
        padding: 20px;
    }
}
