/* 注册登录页面的样式 */

body {
    background-color: #f5f8fa;
}

.simple-register-container {
    max-width: 500px;
    margin: 50px auto 0; /* 减少顶部留白 */
    padding: 30px 40px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.register-header {
    text-align: center;
    margin-bottom: 20px;
}

.register-title {
    font-size: 24px; /* 减小标题字体大小 */
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.register-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.register-form .form-group {
    margin-bottom: 15px; /* 减少表单组间距 */
}

.register-form .form-control {
    height: 45px; /* 减小输入框高度 */
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 15px;
    width: 100%;
}

.register-form .form-control:focus {
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.register-form .btn-register {
    width: 100%;
    height: 45px; /* 减小按钮高度 */
    background-color: #4361ee;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 5px;
}

.register-form .btn-register:hover {
    background-color: #3a0ca3;
}

.register-footer {
    text-align: center;
    margin-top: 15px; /* 减少底部留白 */
    margin-bottom: 0;
    font-size: 14px;
    color: #666;
}

.register-footer a {
    color: #4361ee;
    text-decoration: none;
}

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

.alert {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 14px;
}

.alert-danger {
    background-color: #fff5f5;
    color: #e53e3e;
    border-left: 4px solid #e53e3e;
}

.alert-success {
    background-color: #f0fff4;
    color: #38a169;
    border-left: 4px solid #38a169;
}

.invitecode-link {
    color: #4361ee;
    text-decoration: none;
    font-size: 13px;
    display: inline-block;
    margin-top: 3px;
}

.invitecode-link:hover {
    text-decoration: underline;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.form-check-input {
    width: 16px;
    height: 16px;
}

.form-check-label {
    font-size: 13px;
    color: #666;
}

/* 密码强度指示器 */
.password-strength {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.strength-bar {
    flex-grow: 1;
    display: flex;
    gap: 3px;
}

.strength-bar span {
    height: 3px;
    flex: 1;
    background-color: #e9ecef;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.strength-bar span.active.weak {
    background-color: #e53e3e;
}

.strength-bar span.active.fair {
    background-color: #f39c12;
}

.strength-bar span.active.good {
    background-color: #3498db;
}

.strength-bar span.active.strong {
    background-color: #38a169;
}

.strength-text {
    font-size: 11px;
    color: #6c757d;
    margin-left: 8px;
    min-width: 40px;
}

.password-match {
    font-size: 11px;
    margin-top: 5px;
}

.password-match.match {
    color: #38a169;
}

.password-match.no-match {
    color: #e53e3e;
}

/* 调整底部间距 */
.footer {
    margin-top: 20px;
}

/* 登录链接部分的样式 */
.login-section {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 40px; /* 控制底部留白 */
}

.login-text {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.login-link {
    color: #4361ee;
    text-decoration: none;
}

.login-link:hover {
    text-decoration: underline;
}

/* 登录页面特有的样式 */
.simple-login-container {
    max-width: 500px;
    margin: 50px auto 0; /* 减少顶部留白 */
    padding: 30px 40px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 20px;
}

.login-title {
    font-size: 24px; /* 减小标题字体大小 */
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.login-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.login-form .form-group {
    margin-bottom: 15px; /* 减少表单组间距 */
}

.login-form .form-control {
    height: 45px; /* 减小输入框高度 */
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 15px;
    width: 100%;
}

.login-form .form-control:focus {
    border-color: #4361ee;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.login-form .btn-login {
    width: 100%;
    height: 45px; /* 减小按钮高度 */
    background-color: #4361ee;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 5px;
}

.login-form .btn-login:hover {
    background-color: #3a0ca3;
}

.forgot-password {
    color: #4361ee;
    text-decoration: none;
    font-size: 13px;
    margin-left: auto;
}

.forgot-password:hover {
    text-decoration: underline;
}

.form-options {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

/* 注册链接部分的样式 */
.register-section {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 40px; /* 控制底部留白 */
}

.register-text {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.register-link {
    color: #4361ee;
    text-decoration: none;
}

.register-link:hover {
    text-decoration: underline;
}