/* ==========================================
   登录注册 - 网页端样式 (login.css)
   主色调：蓝白
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.login-page {
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e7f0ff 0%, #f8fbff 50%, #e7f0ff 100%);
    padding: 24px;
    color: #333;
}

/* ================= 外层容器 ================= */
.auth-container {
    width: 100%;
    max-width: 1080px;
    min-height: 620px;
    display: flex;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 24px 64px rgba(30, 99, 240, 0.16);
    overflow: hidden;
}

/* ================= 左侧品牌区 ================= */
.brand-panel {
    width: 46%;
    background: linear-gradient(150deg, #1e63f0 0%, #3f9bff 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 44px 40px;
    position: relative;
    overflow: hidden;
}

.brand-panel::before,
.brand-panel::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.brand-panel::before {
    width: 280px;
    height: 280px;
    top: -100px;
    right: -80px;
}

.brand-panel::after {
    width: 200px;
    height: 200px;
    bottom: -70px;
    left: -60px;
    background: rgba(255, 255, 255, 0.07);
}

.brand-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
}

.brand-body {
    position: relative;
    z-index: 1;
}

.brand-body h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 14px;
    line-height: 1.4;
}

.brand-slogan {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 32px;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    opacity: 0.95;
}

.feature-list li i {
    color: #7dd3fc;
    font-size: 18px;
}

.brand-footer {
    position: relative;
    z-index: 1;
    font-size: 12px;
    opacity: 0.7;
    letter-spacing: 1px;
}

/* ================= 右侧表单区 ================= */
.form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.auth-card {
    width: 100%;
    max-width: 380px;
}

.auth-title {
    font-size: 22px;
    font-weight: 700;
    color: #26314a;
    text-align: center;
    margin-bottom: 28px;
}

/* Tab 切换 */
.tab-nav {
    display: flex;
    background: #f1f6ff;
    border-radius: 30px;
    padding: 4px;
    position: relative;
    margin-bottom: 32px;
}

.tab-btn {
    flex: 1;
    height: 42px;
    border: none;
    background: transparent;
    border-radius: 26px;
    font-size: 15px;
    color: #5a6478;
    cursor: pointer;
    z-index: 1;
    transition: color 0.25s;
}

.tab-btn.active {
    color: #fff;
    font-weight: 600;
}

.tab-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: 42px;
    background: linear-gradient(135deg, #1e63f0, #3f9bff);
    border-radius: 26px;
    transition: transform 0.3s ease;
}

.tab-slider.to-register {
    transform: translateX(100%);
}

/* 表单 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #26314a;
    margin-bottom: 8px;
}

.input-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #dce5f3;
    border-radius: 10px;
    background: #f8fbff;
    padding: 0 14px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.input-wrap:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
    background: #fff;
}

.input-wrap i {
    color: #9db0cc;
    font-size: 14px;
}

.input-wrap input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    height: 46px;
    padding-left: 10px;
    font-size: 14px;
    color: #333;
}

.input-wrap input::placeholder {
    color: #b6c2d8;
}

/* 密码可见切换 */
.pwd-toggle {
    cursor: pointer;
    color: #9db0cc !important;
    font-size: 14px !important;
    padding: 4px;
    transition: color 0.2s;
    flex-shrink: 0;
}

.pwd-toggle:hover {
    color: #1e63f0 !important;
}

/* 记住密码 & 忘记密码 */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.check-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.check-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.check-box {
    width: 18px;
    height: 18px;
    border: 1px solid #d4dceb;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    background: #fff;
    transition: background 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

.check-box i {
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 11px;
}

.check-input:checked + .check-box {
    background: linear-gradient(135deg, #1e63f0, #3f9bff);
    border-color: #1e63f0;
}

.check-input:checked + .check-box i {
    opacity: 1;
}

.check-text {
    margin-left: 8px;
    font-size: 13px;
    color: #5a6478;
}

.forgot-link {
    font-size: 13px;
    color: #1e63f0;
    text-decoration: none;
    transition: opacity 0.2s;
}

.forgot-link:hover {
    opacity: 0.75;
    text-decoration: underline;
}

/* 用户协议 */
.agreement {
    text-align: center;
    font-size: 12px;
    color: #a4b0c6;
    margin-top: 20px;
}

.agreement a {
    color: #1e63f0;
    text-decoration: none;
}

.agreement a:hover {
    text-decoration: underline;
}

/* 提交按钮 */
.submit-btn {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #1e63f0, #3f9bff);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(30, 99, 240, 0.3);
    transition: transform 0.15s, box-shadow 0.2s;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-btn:hover {
    box-shadow: 0 10px 26px rgba(30, 99, 240, 0.4);
}

.submit-btn:active {
    transform: scale(0.97);
}

.submit-btn:disabled {
    background: linear-gradient(135deg, #b6c4d9, #cbd6e4);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.hidden {
    display: none;
}

/* ================= 响应式 ================= */
@media (max-width: 860px) {
    .brand-panel {
        display: none;
    }

    .auth-container {
        max-width: 460px;
        min-height: auto;
    }
}

/* ================= 移动端适配 ================= */
@media (max-width: 480px) {
    body.login-page {
        padding: 12px;
    }
    .auth-container {
        border-radius: 18px;
    }
    .form-panel {
        padding: 28px 20px;
    }
    .auth-title {
        font-size: 20px;
        margin-bottom: 22px;
    }
    .tab-nav {
        margin-bottom: 26px;
    }
    .form-group {
        margin-bottom: 16px;
    }
    .input-wrap input {
        height: 44px;
        font-size: 14px;
    }
    .submit-btn {
        height: 46px;
        font-size: 15px;
    }
    .auth-card {
        max-width: 100%;
    }
}
