/* 登录注册页面专用样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'Segoe UI', Arial, sans-serif;
    background: #0f0f1e;
    overflow: hidden;
    height: 100vh;
}

.auth-page {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* 左侧宣传区 */
.auth-promo {
    flex: 1;
    background: linear-gradient(135deg, #ff9a56 0%, #ff6a3d 100%);
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-promo::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transform: rotate(15deg);
}

.promo-content {
    max-width: 500px;
    color: white;
    position: relative;
    z-index: 1;
}

.promo-logo h1 {
    font-size: 42px;
    margin-bottom: 10px;
    font-weight: bold;
}

.promo-subtitle {
    font-size: 20px;
    margin-bottom: 50px;
    opacity: 0.95;
}

.promo-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.promo-feature {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 15px;
    line-height: 1.6;
}

.feature-icon {
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: bold;
}

/* 右侧表单区 */
.auth-form-section {
    flex: 0 0 500px;
    background: #3a3f4b;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    overflow-y: auto;
}

.auth-form-container {
    width: 100%;
    max-width: 400px;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form h2 {
    color: #ffffff;
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 600;
}

.auth-subtitle {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 30px;
    font-size: 14px;
}

.switch-link {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.switch-link:hover {
    color: #00e5ff;
}

/* 表单样式 */
.form-group {
    margin-bottom: 18px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.4);
    color: #ffffff;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #00d4ff;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.forgot-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}

.forgot-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* 按钮 */
.btn {
    padding: 14px 40px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(135deg, #00d4ff 0%, #0099ff 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 153, 255, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #00e5ff 0%, #00aaff 100%);
    box-shadow: 0 8px 30px rgba(0, 153, 255, 0.6);
    transform: translateY(-2px);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* 社交登录 */
.social-login {
    margin-top: 30px;
    text-align: center;
}

.social-login > p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    margin-bottom: 20px;
    position: relative;
}

.social-login > p::before,
.social-login > p::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.social-login > p::before {
    left: 0;
}

.social-login > p::after {
    right: 0;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    text-decoration: none;
}

.social-btn.qq {
    background: #12b7f5;
    color: white;
}

.social-btn.wechat {
    background: #09bb07;
    color: white;
}

.social-btn.weibo {
    background: #e6162d;
    color: white;
}

.social-btn.alipay {
    background: #1678ff;
    color: white;
}

.social-btn.github {
    background: #24292e;
    color: white;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.social-tip {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    line-height: 1.6;
}

.social-tip a {
    color: #00d4ff;
    text-decoration: none;
}

.social-tip a:hover {
    text-decoration: underline;
}

/* 提示框 */
.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: rgba(40, 167, 69, 0.2);
    color: #d4edda;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.alert-error {
    background: rgba(220, 53, 69, 0.2);
    color: #f8d7da;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.back-home {
    text-align: center;
    margin-top: 30px;
}

.back-home a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.back-home a:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* 响应式设计 */
@media (max-width: 968px) {
    .auth-page {
        flex-direction: column;
    }
    
    .auth-promo {
        flex: 0 0 auto;
        min-height: 300px;
        padding: 40px 30px;
    }
    
    .promo-logo h1 {
        font-size: 32px;
    }
    
    .promo-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .promo-features {
        gap: 15px;
    }
    
    .promo-feature {
        font-size: 14px;
    }
    
    .auth-form-section {
        flex: 1;
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .auth-promo {
        padding: 30px 20px;
    }
    
    .promo-features {
        display: none;
    }
    
    .auth-form h2 {
        font-size: 28px;
    }
}
