/* --- 注册页面主体 --- */
.auth-container {
    width: 80%;
    margin: 140px auto 100px;
    min-height: 600px;
    display: flex;
    justify-content: center;
}

.auth-wrapper {
    display: flex;
    width: 100%;
    background: #fff;
    border: 1px solid #f0f0f0;
}

/* --- 左侧视觉区 --- */
.auth-visual {
    flex: 1.2;
    position: relative;
    overflow: hidden;
    background: #000;
}

.auth-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.visual-overlay {
    position: absolute;
    bottom: 50px;
    left: 40px;
    color: #fff;
}

.visual-overlay h2 {
    font-size: 28px;
    letter-spacing: 4px;
    margin-bottom: 15px;
    font-family: "Optima", serif;
}

.visual-overlay p {
    font-size: 12px;
    line-height: 1.8;
    color: #ccc;
    max-width: 300px;
}

/* --- 右侧表单区 --- */
.auth-form-side {
    flex: 1;
    padding: 60px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-header h3 {
    font-size: 24px;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: 300;
}

.form-header p {
    font-size: 13px;
    color: #999;
    margin-bottom: 40px;
}

/* --- 输入框样式 --- */
.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    font-size: 11px;
    color: #333;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.input-group input {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-bottom-color: #000;
}

/* --- 按钮与链接 --- */
.btn-register {
    width: 100%;
    padding: 15px;
    background: #000;
    color: #fff;
    border: none;
    letter-spacing: 2px;
    cursor: pointer;
    margin: 30px 0;
    transition: opacity 0.3s;
}

.btn-register:hover {
    opacity: 0.8;
}

.form-footer {
    text-align: center;
    font-size: 12px;
    color: #999;
}

.form-footer a {
    color: #000;
    margin-left: 10px;
    text-decoration: underline;
}

/* --- 响应式 --- */
@media (max-width: 1024px) {
    .auth-wrapper { flex-direction: column; }
    .auth-visual { display: none; } /* 移动端隐藏左侧图 */
    .auth-form-side { padding: 40px; }
}

/* --- 优化后的样式 --- */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 40px 0;
}

.auth-wrapper {
    width: 100%;
    max-width: 600px;

}

.auth-form-side {
    width: 100%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.tab-buttons {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
}

.tab-btn {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #000;
    border-bottom-color: #000;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.error-message,
.success-message {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 16px;
}

.form-options {
    margin: 20px 0;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-container input {
    margin-right: 8px;
}

.forgot-password {
    float: right;
    color: #000;
    text-decoration: none;
}

.btn-login,
.btn-register {
    width: 100%;
    padding: 15px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-login:hover,
.btn-register:hover {
    background: #333;
}

@media (max-width: 768px) {
    .auth-form-side {
        padding: 30px;
    }
}