/* 量化交易系统专业登录页面样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #0c1020 0%, #1a1a2e 50%, #16213e 100%);
    position: relative;
}

/* 动态背景容器 */
#bg-chart {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.3;
}

/* 背景装饰网格 */
.bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 2;
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* 浮动粒子效果 */
.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(0, 255, 255, 0.6);
    border-radius: 50%;
    animation: float 8s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* 主容器 */
.login-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

/* 左侧品牌区域 */
.brand-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 60px;
    color: white;
    max-width: 600px;
}

.brand-logo {
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, #00ffff 0%, #0066ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 20px rgba(0, 255, 255, 0.5));
    }
    to {
        filter: drop-shadow(0 0 30px rgba(0, 255, 255, 0.8));
    }
}

.brand-subtitle {
    font-size: 24px;
    font-weight: 300;
    color: #a0a0a0;
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.4;
}

.brand-features {
    list-style: none;
    font-size: 16px;
    color: #c0c0c0;
    line-height: 2;
}

.brand-features li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
}

.brand-features li::before {
    content: '▶';
    position: absolute;
    left: 0;
    top: 0;
    color: #00ffff;
    font-size: 12px;
}

/* 右侧登录表单区域 */
.form-section {
    width: 420px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    margin-right: 60px;
    position: relative;
    overflow: hidden;
}

.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.8), transparent);
    animation: scan 3s ease-in-out infinite;
}

@keyframes scan {
    0%, 100% { opacity: 0; transform: translateX(-100%); }
    50% { opacity: 1; transform: translateX(100%); }
}

.form-title {
    text-align: center;
    margin-bottom: 40px;
}

.form-title h2 {
    color: white;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
}

.form-title p {
    color: #a0a0a0;
    font-size: 14px;
}

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

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group label {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #00ffff;
    font-size: 18px;
    z-index: 2;
}

.form-input {
    width: 100%;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 0 15px 0 45px;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #00ffff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.form-input::placeholder {
    color: #666;
}

.captcha-group {
    display: flex;
    gap: 10px;
}

.captcha-input {
    flex: 1;
}

.captcha-img {
    width: 120px;
    height: 50px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.captcha-img:hover {
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

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

/* 登录按钮 */
.login-btn {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #0066ff 0%, #00ffff 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.4);
}

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

.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;
}

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

/* 底部链接 */
.form-footer {
    text-align: center;
    margin-top: 30px;
    color: #a0a0a0;
    font-size: 14px;
}

.form-footer a {
    color: #00ffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.form-footer a:hover {
    color: #0066ff;
}

/* 状态指示器 */
.status-indicator {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ffff;
    animation: pulse 2s ease-in-out infinite;
}

.status-dot:nth-child(2) {
    animation-delay: 0.5s;
}

.status-dot:nth-child(3) {
    animation-delay: 1s;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .brand-section {
        display: none;
    }
    
    .login-container {
        justify-content: center;
    }
    
    .form-section {
        margin-right: 0;
        width: 100%;
        max-width: 400px;
        margin: 20px;
    }
}

@media (max-width: 480px) {
    .form-section {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .brand-logo {
        font-size: 36px;
    }
    
    .form-title h2 {
        font-size: 24px;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #00ffff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 错误提示样式 */
.error-message {
    color: #ff4757;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.form-group.error .form-input {
    border-color: #ff4757;
    box-shadow: 0 0 10px rgba(255, 71, 87, 0.3);
}

.form-group.error .error-message {
    display: block;
}