﻿@charset "utf-8";
/* ==================== register.css - 注册页面专用样式（宽屏版） ==================== */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: 40px 20px;
    background-color: var(--background-light);
}

/* 修改：容器宽度调整为与主体内容一致的1200px */
.auth-container {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    width: 100%;
    max-width: 1200px;  /* 与主体内容宽度一致 */
    padding: 60px 80px;  /* 增加内边距，使内容更舒展 */
    animation: fadeInUp 0.5s ease;
    position: relative; /* 为悬浮提示提供定位参考 */
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;  /* 增加底部间距 */
}

.auth-header h2 {
    color: var(--primary-dark);
    font-size: 2.5rem;  /* 增大标题字号 */
    margin-bottom: 15px;
}

.auth-header h2 i {
    margin-right: 10px;
    color: var(--primary-color);
}

.auth-header p {
    color: var(--text-light);
    font-size: 1.2rem;  /* 增大副标题字号 */
}

/* 修改：表单区域宽度控制 */
.auth-form {
    max-width: 900px;  /* 注册表单比登录稍宽，因为内容更多 */
    margin: 0 auto;    /* 居中显示 */
}

.auth-form .form-group {
    margin-bottom: 30px;  /* 增加表单项间距 */
}

.auth-form .form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.1rem;  /* 增大标签字号 */
}

.auth-form .form-label i {
    margin-right: 8px;
    color: var(--primary-color);
}

.auth-form .form-control {
    width: 100%;
    padding: 16px 20px;  /* 增大输入框内边距 */
    border: 2px solid #e0e0e0;  /* 加粗边框 */
    border-radius: 12px;  /* 增大圆角 */
    font-size: 1.1rem;  /* 增大输入框字号 */
    transition: all 0.3s ease;
}

.auth-form .form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(138, 43, 226, 0.15);  /* 增大聚焦阴影 */
}

.auth-form .form-control.error {
    border-color: var(--danger-color);
}

.auth-form .error-message {
    color: var(--danger-color);
    font-size: 0.95rem;
    margin-top: 8px;
    display: none;
}

.auth-form .error-message.show {
    display: block;
}

.auth-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;  /* 增大列间距 */
}

.auth-form .btn {
    width: 100%;
    padding: 18px;  /* 增大按钮高度 */
    font-size: 1.3rem;  /* 增大按钮字号 */
    margin-top: 20px;
    border-radius: 40px;  /* 增大按钮圆角 */
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    color: var(--text-light);
    font-size: 1.1rem;
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
    font-size: 1.1rem;
    margin-left: 5px;
}

.auth-footer a:hover {
    color: var(--primary-dark);
}

/* 协议条款 - 放大 */
.terms-agreement {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 25px 0;
    color: var(--text-light);
    font-size: 1.05rem;
}

.terms-agreement input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.terms-agreement a {
    color: var(--primary-color);
    text-decoration: underline;
}

.terms-agreement a:hover {
    color: var(--primary-dark);
}

/* 密码强度提示 - 放大 */
.password-strength {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

.strength-bar {
    height: 6px;  /* 增高强度条 */
    flex: 1;
    background-color: #ddd;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.strength-bar.weak {
    background-color: var(--danger-color);
}

.strength-bar.medium {
    background-color: var(--warning-color);
}

.strength-bar.strong {
    background-color: var(--success-color);
}

.strength-text {
    font-size: 0.95rem;
    margin-top: 8px;
    color: var(--text-light);
}

/* ========== 居中悬浮提示框样式 ========== */
.alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    min-width: 320px;
    max-width: 450px;
    padding: 20px 25px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 8px 16px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.5;
    display: none;
    animation: alertPopIn 0.3s ease;
    border: none;
    backdrop-filter: blur(5px);
}

.alert.show {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.alert i {
    font-size: 1.5rem;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.95);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.95);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.95);
    color: #333;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.95);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes alertPopIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* 添加遮罩层效果 */
.alert.show::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /*background-color: rgba(0, 0, 0, 0.3);*/
    z-index: -1;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* 返回首页链接 - 放大 */
.back-to-home {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    margin-bottom: 30px;
    transition: color 0.3s ease;
    font-size: 1.1rem;
}

.back-to-home:hover {
    color: var(--primary-color);
}

.back-to-home i {
    font-size: 1rem;
}

/* 临时补充样式，确保新添加的省市县/区字段显示良好 */
.address-group { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 10px; 
}

.address-group .form-group { 
    flex: 1 1 calc(33.333% - 7px); 
    min-width: 130px; 
}

.address-detail { 
    margin-top: 10px; 
}

.form-row .form-group.street-full { 
    flex: 1 1 100%; 
}

/* 性别选项组 */
.gender-options { 
    display: flex; 
    gap: 20px; 
    align-items: center; 
    padding: 8px 0; 
}

.gender-options label { 
    display: flex; 
    align-items: center; 
    gap: 5px; 
    font-weight: normal; 
    cursor: pointer; 
}

.gender-options input[type="radio"] { 
    width: auto; 
    margin-right: 3px; 
}

/* 错误信息微调 */
.error-message.show { 
    margin-top: 4px; 
}

/* 响应式调整 */
@media (max-width: 992px) {
    .auth-container {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .auth-container {
        padding: 30px 20px;
    }
    
    .auth-header h2 {
        font-size: 2rem;
    }
    
    .auth-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .auth-form .btn {
        padding: 15px;
        font-size: 1.2rem;
    }
    
    .terms-agreement {
        flex-wrap: wrap;
    }
    
    .alert {
        min-width: 280px;
        max-width: 350px;
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .alert i {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .auth-container {
        padding: 20px 15px;
    }
    
    .auth-header h2 {
        font-size: 1.8rem;
    }
    
    .auth-form .form-control {
        padding: 14px;
    }
    
    .alert {
        min-width: 250px;
        max-width: 300px;
        padding: 12px 18px;
    }
}