* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #f0f3f8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* ========== 登录卡片 ========== */
.login-card {
    display: flex;
    width: 960px;
    max-width: 95vw;
    min-height: 520px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    background: #fff;
    margin: 0 auto;
}

/* ========== 左侧品牌区域 ========== */
.login-left {
    flex: 1;
    background: linear-gradient(160deg, #eef1fb 0%, #e4e9f8 100%);
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.brand-header {
    margin-bottom: 20px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
}

.brand-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brand-content h1 {
    font-size: 30px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 16px;
    line-height: 1.3;
}

.brand-content p {
    font-size: 14px;
    color: #6b7a90;
    line-height: 1.8;
    max-width: 340px;
}

.brand-stats {
    display: flex;
    gap: 40px;
    padding-top: 24px;
}

.stat-item {
    text-align: left;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #4f6ef7;
    line-height: 1.2;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: #8896a6;
    font-weight: 400;
}

/* ========== 右侧表单区域 ========== */
.login-right {
    width: 420px;
    min-width: 380px;
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-header {
    margin-bottom: 36px;
}

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

.form-header p {
    font-size: 14px;
    color: #8896a6;
}

/* ========== 表单 ========== */
.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #3a3f51;
    font-size: 14px;
    font-weight: 500;
}

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

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
}

.input-wrapper input {
    width: 100%;
    padding: 12px 16px 12px 42px;
    border: 1px solid #dce1ea;
    border-radius: 8px;
    font-size: 14px;
    color: #1a1a2e;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}

.input-wrapper input::placeholder {
    color: #b0b8c8;
}

.input-wrapper input:focus {
    border-color: #4f6ef7;
    box-shadow: 0 0 0 3px rgba(79, 110, 247, 0.1);
}

/* ========== 验证码 ========== */
.captcha-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.captcha-input {
    flex: 1;
}

.captcha-img {
    width: 120px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    background: #f5f6fa;
    border: 1px solid #dce1ea;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* ========== 登录按钮 ========== */
.login-btn {
    width: 100%;
    background: #4f6ef7;
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.2s;
    letter-spacing: 2px;
}

.login-btn:hover {
    background: #3d5ce5;
    box-shadow: 0 4px 16px rgba(79, 110, 247, 0.35);
    transform: translateY(-1px);
}

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

/* ========== 隐私协议 ========== */
.privacy-text {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: #8896a6;
}

.privacy-text a {
    color: #4f6ef7;
    text-decoration: none;
}

.privacy-text a:hover {
    text-decoration: underline;
}

/* ========== 错误提示 ========== */
.error {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 12px;
    text-align: center;
    min-height: 20px;
}

/* ========== 页面底部 ========== */
.page-footer {
    text-align: center;
    padding: 24px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
}

.page-footer span {
    font-size: 12px;
    color: #8896a6;
}

/* ========== 响应式 ========== */
@media (max-width: 900px) {
    .login-card {
        flex-direction: column;
        max-width: 480px;
        min-height: auto;
    }

    .login-left {
        padding: 36px 32px;
        min-height: 200px;
    }

    .brand-content h1 {
        font-size: 24px;
    }

    .brand-content p {
        display: none;
    }

    .brand-stats {
        gap: 30px;
    }

    .stat-value {
        font-size: 26px;
    }

    .login-right {
        width: 100%;
        min-width: auto;
        padding: 40px 32px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 16px;
        justify-content: flex-start;
        padding-top: 40px;
    }

    .login-card {
        max-width: 100%;
        border-radius: 12px;
    }

    .login-left {
        padding: 28px 24px;
    }

    .brand-content h1 {
        font-size: 20px;
    }

    .brand-stats {
        gap: 24px;
    }

    .login-right {
        padding: 32px 24px;
    }

    .form-header h2 {
        font-size: 22px;
    }

    .captcha-img {
        width: 100px;
        height: 42px;
    }
}
