/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "微软雅黑", "Inter", sans-serif;
}

body {
    background-color: #f5f7fa;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 容器样式（响应式布局） */
.container {
    width: 90%;
    max-width: 1000px;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    overflow: hidden;
}

/* 左侧品牌展示区 */
.brand-section {
    width: 50%;
    background-color: #1e88e5;
    color: #ffffff;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.brand-title {
    font-size: 28px;
    margin-bottom: 16px;
    font-weight: 600;
}

.brand-slogan {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 32px;
}

.brand-illustration {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.9);
}

/* 右侧表单区 */
.form-section {
    width: 50%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 表单标签页（新增找回密码标签，适配3个标签） */
.form-tabs {
    display: flex;
    margin-bottom: 32px;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: #333333;
    padding: 8px 0;
    border-bottom: 2px solid #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #1e88e5;
    border-bottom: 2px solid #1e88e5;
}

/* 表单内容（登录/注册/找回密码切换） */
.form-content {
    display: none;
    flex-direction: column;
    gap: 20px;
}

.form-content.active {
    display: flex;
}

/* 输入框组 */
.input-group {
    position: relative;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999999;
    font-size: 14px;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #999999;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #1e88e5;
}

.input-group input {
    width: 100%;
    padding: 14px 16px 14px 44px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #333333;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group input:focus {
    border-color: #1e88e5;
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.1);
}

.input-group input::placeholder {
    color: #999999;
}

/* 表单选项（记住我/忘记密码/协议勾选） */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666666;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 6px;
}

.checkbox-label input {
    width: 14px;
    height: 14px;
    accent-color: #1e88e5;
}

.forget-pwd {
    color: #1e88e5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forget-pwd:hover {
    color: #1565c0;
    text-decoration: underline;
}

/* 提交按钮（适配找回密码按钮） */
.submit-btn {
    width: 100%;
    padding: 14px;
    background-color: #1e88e5;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-btn:disabled {
    background-color: #90caf9;
    cursor: not-allowed;
    transform: none;
}

.submit-btn:hover:not(:disabled) {
    background-color: #1565c0;
}

.submit-btn:active:not(:disabled) {
    transform: scale(0.98);
}

/* 表单切换链接（移除第三方登录样式，适配找回密码） */
.form-switch {
    font-size: 12px;
    color: #666666;
    text-align: center;
    margin-top: 8px;
}

.form-switch a {
    color: #1e88e5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.form-switch a:hover {
    color: #1565c0;
    text-decoration: underline;
}

/* 响应式适配（移动端/平板端） */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        margin: 20px 0;
    }

    .brand-section {
        width: 100%;
        padding: 24px;
    }

    .brand-title {
        font-size: 24px;
    }

    .brand-illustration {
        margin-top: 12px;
    }

    .form-section {
        width: 100%;
        padding: 24px;
    }

    .tab-btn {
        font-size: 14px;
    }
}