/* css/register.css - 注册页面样式 */

.login-container {
    width: 80%;
    max-width: 500px;
    margin: 30px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid #eaeaea;
}

.auth-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.auth-header h1 {
    font-size: 26px;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.auth-header p {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 400;
}

.auth-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 25px;
    border: 1px solid #e8eef3;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    letter-spacing: 0.2px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #dbe1e8;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    background-color: white;
    color: #333;
}

.form-control:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
    background-color: #f8fafc;
}

.form-control:hover {
    border-color: #b8c2cc;
}

.form-help {
    margin-top: 8px;
    font-size: 13px;
    color: #5a6c7d;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.form-help i {
    color: #3498db;
}

/* 密码强度指示器 */
#passwordStrength {
    margin-top: 10px;
}

.strength-meter {
    height: 6px;
    border-radius: 3px;
    margin-bottom: 8px;
    background: #e9ecef;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.strength-text {
    font-size: 13px;
    color: #5a6c7d;
    font-weight: 500;
}

.strength-weak .strength-bar {
    background: #e74c3c;
    width: 25%;
}

.strength-weak .strength-text {
    color: #e74c3c;
    font-weight: 600;
}

.strength-fair .strength-bar {
    background: #f39c12;
    width: 50%;
}

.strength-fair .strength-text {
    color: #f39c12;
    font-weight: 600;
}

.strength-good .strength-bar {
    background: #3498db;
    width: 75%;
}

.strength-good .strength-text {
    color: #3498db;
    font-weight: 600;
}

.strength-strong .strength-bar {
    background: #27ae60;
    width: 100%;
}

.strength-strong .strength-text {
    color: #27ae60;
    font-weight: 600;
}

.strength-suggestions {
    margin-top: 8px;
    padding-left: 20px;
    font-size: 12px;
    color: #95a5a6;
    list-style-type: disc;
}

.strength-suggestions li {
    margin-bottom: 4px;
}

/* 复选框样式 */
.checkbox-group {
    margin: 20px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    color: #5a6c7d;
    font-weight: 500;
    transition: color 0.2s;
    line-height: 1.5;
}

.checkbox-label:hover {
    color: #3498db;
}

.checkbox-label input {
    margin-right: 12px;
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    border-radius: 4px;
    border: 2px solid #cbd5e0;
}

.checkbox-label input:checked {
    background-color: #3498db;
    border-color: #3498db;
}

.checkbox-label a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    margin: 0 4px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s;
}

.checkbox-label a:hover {
    background-color: rgba(52, 152, 219, 0.1);
    text-decoration: none;
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: block;
    width: 100%;
    letter-spacing: 0.3px;
    box-shadow: 0 3px 12px rgba(52, 152, 219, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #2573a7 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(52, 152, 219, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

/* 警告消息样式 */
.alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: slideIn 0.3s ease;
    font-size: 14px;
    line-height: 1.5;
}

.alert i {
    font-size: 18px;
    margin-top: 2px;
}

.alert-error {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-left: 4px solid #c62828;
    color: #c62828;
    box-shadow: 0 3px 12px rgba(198, 40, 40, 0.1);
}

.alert-success {
    background: linear-gradient(135deg, #d5f4e6 0%, #a3e4c1 100%);
    border-left: 4px solid #27ae60;
    color: #27ae60;
    box-shadow: 0 3px 12px rgba(39, 174, 96, 0.1);
}

.alert a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.3);
    transition: all 0.2s;
    word-break: break-all;
    display: inline-block;
    margin-top: 5px;
}

.alert a:hover {
    background-color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
}

/* 页脚样式 */
.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    color: #5a6c7d;
    font-size: 14px;
    font-weight: 500;
}

.auth-footer p {
    margin: 10px 0;
    line-height: 1.5;
}

.auth-footer a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    transition: all 0.2s;
    position: relative;
}

.auth-footer a:hover {
    color: #2980b9;
    text-decoration: none;
    background-color: rgba(52, 152, 219, 0.1);
}

.auth-footer a:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 8px;
    right: 8px;
    height: 1px;
    background-color: #3498db;
    transform: scaleX(0);
    transition: transform 0.2s;
}

.auth-footer a:hover:after {
    transform: scaleX(1);
}

/* 动画效果 */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .login-container {
        width: 90%;
        padding: 20px;
        margin: 20px auto;
    }
    
    .auth-card {
        padding: 20px 15px;
    }
    
    .auth-header h1 {
        font-size: 22px;
    }
    
    .auth-header p {
        font-size: 13px;
    }
    
    .alert {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .btn-primary {
        padding: 14px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .login-container {
        width: 95%;
        padding: 15px;
        margin: 15px auto;
    }
    
    .auth-card {
        padding: 15px 12px;
    }
    
    .checkbox-label {
        font-size: 13px;
    }
    
    .auth-footer p {
        font-size: 13px;
    }
}

/* 针对小高度屏幕 */
@media (max-height: 700px) {
    .login-container {
        margin: 10px auto;
        padding: 20px;
    }
    
    .auth-header {
        margin-bottom: 15px;
    }
    
    .auth-card {
        margin-bottom: 15px;
        padding: 20px;
    }
    
    .auth-footer {
        margin-top: 15px;
        padding-top: 15px;
    }
}