/* ===== Auth 通用样式（登录/注册/找回密码/重置密码） ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    color: #333;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* 整体容器（左右布局） */
.auth-container {
    display: flex;
    width: 100%;
    max-width: 1000px;
    min-height: 600px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* 左侧品牌面板 —— 改为白底黑字，无渐变 */
.brand-panel {
    flex: 1;
    background: #ffffff;
    color: #1e293b;
    border-right: 1px solid #eef2f6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
}

.brand-panel img {
    width: 120px;
    height: auto;
    margin-bottom: 2rem;
}

.brand-panel h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #0f172a;
}

.brand-panel p {
    font-size: 1rem;
    line-height: 1.8;
    color: #475569;
    max-width: 80%;
}

/* 右侧表单区域 */
.form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.auth-card {
    width: 100%;
    max-width: 400px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    font-weight: 600;
}

/* 表单元素 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #495057;
    font-weight: 500;
}

.form-label.required::after {
    content: " *";
    color: #dc3545;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

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

.btn-submit {
    width: 100%;
    padding: 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

/* 底部链接 */
.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: #6c757d;
}

.auth-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

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

/* 警告框 */
.alert {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.alert-success {
    background-color: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.alert-error {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
}

.alert ul {
    margin: 0;
    padding-left: 1rem;
}

.help-text {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

/* 响应式 */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
        max-width: 100%;
    }

    .brand-panel {
        padding: 2rem;
        min-height: 200px;
        border-right: none;
        border-bottom: 1px solid #eef2f6;
    }

    .brand-panel h1 {
        font-size: 1.5rem;
    }

    .form-panel {
        padding: 2rem;
    }
}