/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    overflow: hidden;
}

/* 主容器 */
.main-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* 左侧面板 */
.left-panel {
    width: 725px;
    background: #144297 linear-gradient(1turn, #144297, #4368ac);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    overflow: hidden;
    padding: 200px 0 80px 180px;

}

/* 品牌区域 */
.brand-section {
    text-align: center;
    color: white;
    z-index: 2;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: left;
}

.brand-copyright {
    font-size: 16px;
    font-weight: 400;
    text-align: left;
    color: #fff;
}


@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* 右侧面板 */
.right-panel {
    flex: 1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 200px 318px 0 218px;
}

.form-wrapper {
    width: 100%;
}

/* 表单容器 */
.form-container {
    border-radius: 16px;
    padding: 40px;
}

/* 隐藏表单 */
.hidden {
    display: none;
}

/* 表单头部 */
.form-header {
    text-align: left;
    margin-bottom: 30px;
}

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

.form-header p {
    color: #718096;
    font-size: 16px;
    font-weight: 400;
}

/* 登录方式切换 */
.login-type-switch {
    display: flex;
    background: #f7fafc;
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 25px;
    border: 1px solid #e2e8f0;
}

.switch-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: #718096;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    position: relative;
}

.switch-btn svg {
    width: 16px;
    height: 16px;
}

.switch-btn.active {
    background: white;
    color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.switch-btn:hover:not(.active) {
    color: #4a5568;
    background: rgba(102, 126, 234, 0.05);
}

/* 输入组样式 */
.input-group {
    position: relative;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.input-group.focused {
    transform: scale(1.02);
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #a0aec0;
    transition: color 0.3s ease;
    z-index: 2;
}

.input-group.focused .input-icon {
    color: #667eea;
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 50px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    background: #f7fafc;
    transition: all 0.3s ease;
    outline: none;
}

.input-group input:focus {
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-group input::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

/* 验证码输入组特殊样式 */
.input-group.has-send-btn {
    display: flex;
    gap: 10px;
}

.input-group.has-send-btn input {
    flex: 1;
    padding-right: 15px;
}

.send-code-btn {
    padding: 0 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 100px;
}

.send-code-btn:hover:not(:disabled) {
    background: #5a67d8;
    transform: translateY(-1px);
}

.send-code-btn:disabled {
    background: #a0aec0;
    cursor: not-allowed;
    transform: none;
}

/* 表单选项 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
}

/* 复选框样式 */
.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #4a5568;
    position: relative;
    padding-left: 30px;
}

.checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 18px;
    width: 18px;
    background-color: #e2e8f0;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.checkbox-container:hover input ~ .checkmark {
    background-color: #cbd5e0;
}

.checkbox-container input:checked ~ .checkmark {
    background-color: #667eea;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

/* 忘记密码链接 */
.forgot-password {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* 提交按钮 */
.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-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;
}

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

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

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

/* 社交登录 */
.social-login {
    margin-top: 25px;
    text-align: center;
}

.social-login p {
    color: #718096;
    font-size: 14px;
    margin-bottom: 15px;
    position: relative;
}

.social-login p::before,
.social-login p::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: #e2e8f0;
}

.social-login p::before {
    left: 0;
}

.social-login p::after {
    right: 0;
}

.social-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    color: #4a5568;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-btn svg {
    width: 18px;
    height: 18px;
}

.social-btn.wechat:hover {
    border-color: #07c160;
    color: #07c160;
    background: rgba(7, 193, 96, 0.05);
}

.social-btn.qq:hover {
    border-color: #12b7f5;
    color: #12b7f5;
    background: rgba(18, 183, 245, 0.05);
}

/* 表单底部 */
.form-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.form-footer p {
    color: #718096;
    font-size: 14px;
}

.switch-form {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.switch-form:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* 动画效果 */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .main-container {
        flex-direction: column;
    }
    
    .left-panel {
        width: 100%;
        height: 100%;
        display: none;
    }
    
    .right-panel {
        flex: 1;
        padding: 20px;
    }
    
    .brand-title {
        font-size: 28px;
    }
    
    .brand-subtitle {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .left-panel {
        height: 150px;
    }
    
    .brand-title {
        font-size: 24px;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    .form-header h2 {
        font-size: 24px;
    }
    
    .form-header p {
        font-size: 14px;
    }
    
    .input-group input {
        padding: 12px 12px 12px 45px;
        font-size: 15px;
    }
    
    .submit-btn {
        padding: 12px;
        font-size: 15px;
    }
    
    .social-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .social-btn {
        justify-content: center;
    }
    
    .login-type-switch {
        margin-bottom: 20px;
    }
    
    .switch-btn {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .send-code-btn {
        padding: 0 15px;
        font-size: 13px;
        min-width: 80px;
    }
}

@media (max-width: 480px) {
    .left-panel {
        height: 120px;
    }
    
    .brand-title {
        font-size: 20px;
    }
    
    .form-container {
        padding: 25px 15px;
        border-radius: 12px;
    }
    
    .form-header h2 {
        font-size: 22px;
    }
    
    .input-group input {
        padding: 10px 10px 10px 40px;
        font-size: 14px;
    }
    
    .logo {
        width: 60px;
        height: 60px;
    }
    
    .logo svg {
        width: 30px;
        height: 30px;
    }
    
    .switch-btn {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .switch-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .send-code-btn {
        padding: 0 12px;
        font-size: 12px;
        min-width: 70px;
    }
}

/* 加载动画 */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 错误状态 */
.input-group.error input {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.input-group.error .input-icon {
    color: #e53e3e;
}

/* 成功状态 */
.input-group.success input {
    border-color: #38a169;
    box-shadow: 0 0 0 3px rgba(56, 161, 105, 0.1);
}

.input-group.success .input-icon {
    color: #38a169;
} 