/**
 * 登录页：左右分栏 + 顶部/底部企业风格
 * 仅在 body.login-page 时生效
 */

/* 背景与整体（与首页一致：顶底贴边，内容居中） */
.login-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background:
        radial-gradient(1200px 600px at 15% 10%, rgba(79, 70, 229, 0.45), transparent 55%),
        radial-gradient(900px 500px at 88% 80%, rgba(37, 99, 235, 0.35), transparent 50%),
        linear-gradient(180deg, #070b18 0%, #0b1220 50%, #0b1220 100%);
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    align-items: stretch;
}

.login-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

/* 顶部、底部复用 home.css 的 .site-header / .site-footer，规格与首页一致 */

/* 登录页页脚与主内容间距（首页为 64px，登录页略小更协调） */
.login-page .site-footer {
    margin-top: 40px;
}

/* ========== 主体：左右分栏 ========== */
.login-main {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 24px 32px;
    align-items: center;
}

/* 左侧：品牌与卖点 */
.login-left {
    padding-right: 24px;
}

.login-left-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.98);
    margin: 0 0 16px 0;
}

.login-left-desc {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.78);
    margin: 0 0 28px 0;
}

.login-left-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.login-left-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 14px;
}

.login-left-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(96, 165, 250, 0.9);
    flex-shrink: 0;
}

.login-left-features li:nth-child(2) .login-left-dot { background: rgba(167, 139, 250, 0.9); }
.login-left-features li:nth-child(3) .login-left-dot { background: rgba(52, 211, 153, 0.9); }

/* 右侧：表单卡片 */
.login-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-form-card {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: 0 20px 60px rgba(2, 6, 23, 0.28);
}

/* Tab */
.login-page .tabs {
    margin-bottom: 26px;
    gap: 6px;
    display: flex;
}

.login-page .tab-btn {
    color: rgba(255, 255, 255, 0.7);
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.login-page .tab-btn:hover {
    color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.08);
}

.login-page .tab-btn.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(79, 70, 229, 1), rgba(37, 99, 235, 1));
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.login-page .tab-content h2 {
    color: rgba(255, 255, 255, 0.98);
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.login-page .subtitle {
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
    margin: 0 0 24px 0;
}

/* 输入与按钮（沿用深色主题） */
.login-page input {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(148, 163, 184, 0.28) !important;
    color: #fff !important;
    border-radius: 12px;
}

.login-page input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.login-page input:focus {
    border-color: rgba(96, 165, 250, 0.6) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
}

/* 输入框图标：保留原 emoji，提亮以适配深色背景 */
.login-page .input-icon {
    color: rgba(255, 255, 255, 0.5);
    filter: brightness(1.7) saturate(1.3);
}

.login-page input:focus + .input-icon {
    color: rgba(96, 165, 250, 0.95);
    filter: brightness(1.65) saturate(1.25);
}

.login-page .error-message {
    color: #f87171;
    font-size: 12px;
    margin-top: 6px;
}

.login-page .btn-primary {
    width: 100%;
    background: linear-gradient(135deg, rgba(79, 70, 229, 1), rgba(37, 99, 235, 1)) !important;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.32);
    color: #fff !important;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
}

.login-page .btn-primary:hover {
    filter: brightness(1.08);
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(37, 99, 235, 0.4);
}

.login-page .btn-secondary {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: none;
}

.login-page .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.5);
}

/* Toast */
.login-page .toast {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

/* 响应式：小屏改为上下堆叠 */
@media (max-width: 900px) {
    .login-main {
        grid-template-columns: 1fr;
        padding: 32px 20px 24px;
        gap: 32px;
    }

    .login-left {
        padding-right: 0;
        text-align: center;
    }

    .login-left-title {
        font-size: 24px;
    }

    .login-left-features {
        max-width: 320px;
        margin: 0 auto;
    }
}

@media (max-width: 560px) {
    .login-main {
        padding: 24px 16px 20px;
    }
    .login-form-card {
        padding: 28px 20px;
    }
    .login-left-title {
        font-size: 22px;
    }
}

@media (max-width: 380px) {
    .login-main {
        padding: 20px 12px 16px;
    }
    .login-left-title {
        font-size: 20px;
    }
    .login-form-card {
        padding: 22px 16px;
    }
    .login-page .site-footer-inner {
        padding: 20px 12px 16px;
    }
}
