/* auth.css - 登录、注册、忘记密码页面样式 */

/* 认证区块 */
.auth-section {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 20px;
    margin-top: 70px;
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    max-width: 1000px;
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* 左侧信息 */
.auth-info {
    background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    padding: 60px 40px;
    display: flex;
    align-items: center;
    color: white;
}

.auth-info-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.auth-info-content > p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.auth-features {
    list-style: none;
    margin-bottom: 60px;
}

.auth-features li {
    padding: 12px 0;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-features i {
    font-size: 1.2rem;
}

.auth-testimonial {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.auth-testimonial p {
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 10px;
}

.auth-testimonial span {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* 右侧表单 */
.auth-forms {
    padding: 60px 40px;
    position: relative;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-header {
    text-align: center;
    margin-bottom: 35px;
}

.form-header h2 {
    font-size: 2rem;
    color: #1e293b;
    margin-bottom: 10px;
}

.form-header p {
    color: #64748b;
}

/* 表单组 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #1e293b;
    font-weight: 500;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.input-with-icon input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-with-icon input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-with-icon .toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 0;
}

.input-with-button {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.input-with-button .input-with-icon {
    grid-column: 1;
}

.input-with-button .btn {
    grid-column: 2;
    white-space: nowrap;
}

/* 表单选项 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #475569;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.forgot-password {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #0ea5e9;
}

/* 按钮 */
.btn-block {
    display: block;
    width: 100%;
    padding: 14px;
    font-size: 1.05rem;
}

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

.social-login p {
    color: #94a3b8;
    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: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.social-btn {
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-btn.wechat {
    color: #07c160;
    border-color: #07c160;
}

.social-btn.qq {
    color: #12b7f5;
    border-color: #12b7f5;
}

/* 切换认证模式 */
.auth-switch {
    text-align: center;
    margin-top: 25px;
    color: #64748b;
}

.auth-switch a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* 简单底部 */
.footer-simple {
    background: transparent;
    color: white;
    text-align: center;
    padding: 20px;
}

.footer-simple p {
    margin: 5px 0;
}

/* 响应式 */
@media (max-width: 768px) {
    .auth-container {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .auth-info {
        display: none;
    }
    
    .auth-forms {
        padding: 40px 25px;
    }
    
    .form-header h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .auth-section {
        padding: 20px 10px;
    }
    
    .auth-forms {
        padding: 30px 20px;
    }
    
    .social-buttons {
        grid-template-columns: 1fr;
    }
}
