/* 登录页面样式 - 大气现代风格 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* 动态背景 */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    animation: float 20s infinite ease-in-out;
}

.bg-shape-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    top: -150px;
    left: -150px;
}

.bg-shape-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    bottom: -100px;
    right: -100px;
}

.bg-shape-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, 30px); }
}

/* 主容器 - 左右结构整体居中 */
.login-wrapper {
    display: flex;
    width: 100%;
    max-width: 900px;
    min-height: 560px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

/* 左侧品牌区域 */
.login-brand {
    width: 380px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 50px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-brand::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
}

.brand-content {
    position: relative;
    z-index: 1;
}

.brand-logo {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.brand-logo svg {
    width: 38px;
    height: 38px;
    color: #fff;
}

.login-brand h1 {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.login-brand .subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 45px;
    line-height: 1.6;
}

.brand-features {
    list-style: none;
}

.brand-features li {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.feature-icon {
    width: 26px;
    height: 26px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    font-size: 12px;
    flex-shrink: 0;
}

.brand-footer {
    position: absolute;
    bottom: 30px;
    left: 45px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

/* 右侧登录区域 */
.login-form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px;
}

.login-form-section .login-card {
    width: 100%;
    max-width: 340px;
}

.login-header {
    margin-bottom: 35px;
}

.login-header h2 {
    font-size: 26px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.login-header p {
    color: #888;
    font-size: 14px;
}

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

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    color: #aaa;
    transition: color 0.3s;
    pointer-events: none;
}

.input-icon svg {
    width: 18px;
    height: 18px;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    height: 48px;
    padding: 0 14px 0 44px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s;
    background: #fafafa;
}

.login-form input:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-icon-wrapper:focus-within .input-icon {
    color: #667eea;
}

/* 验证码 */
.captcha-wrapper {
    display: flex;
    gap: 10px;
}

.captcha-input {
    flex: 1;
}

.captcha-group img {
    height: 48px;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid #e8e8e8;
    transition: border-color 0.3s;
}

.captcha-group img:hover {
    border-color: #667eea;
}

/* 记住我 & 忘记密码 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
    color: #666;
}

.remember-me input {
    display: none;
}

.checkmark {
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s;
}

.remember-me input:checked + .checkmark {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

.remember-me input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 10px;
}

.forgot-link {
    color: #667eea;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-link:hover {
    color: #764ba2;
}

/* 登录按钮 */
.login-btn {
    width: 100%;
    height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    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;
}

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

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

.login-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s;
}

.login-btn:hover svg {
    transform: translateX(4px);
}

.login-btn.loading {
    pointer-events: none;
}

.login-btn.loading span {
    opacity: 0;
}

.login-btn.loading::after {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    position: absolute;
}

.login-btn.success {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

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

/* 底部提示 */
.login-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.login-footer p {
    color: #999;
    font-size: 12px;
}

.login-footer code {
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    color: #667eea;
    font-size: 11px;
}

/* 响应式 */
@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
        max-width: 400px;
    }

    .login-brand {
        width: 100%;
        padding: 40px 35px;
    }

    .brand-features {
        display: none;
    }

    .brand-footer {
        display: none;
    }

    .login-form-section {
        padding: 40px 35px;
    }
}
