/* forgot.html 特有样式 */
.verification-input {
    display: flex;
    gap: 0.5rem;
}

.verification-input .form-control {
    flex: 1;
}

.verification-btn {
    white-space: nowrap;
    min-width: 120px;
}

.password-requirements {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-left: 3px solid #1696d2;
}

.requirements-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #374151;
    font-size: 0.875rem;
}

.requirements-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
    display: grid;
    gap: 0.5rem;
}

.requirement {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    color: #6b7280;
    transition: color 0.3s ease;
}

.requirement i {
    margin-right: 0.5rem;
    color: #d1d5db;
    transition: color 0.3s ease;
}

.requirement.met {
    color: #059669;
}

.requirement.met i {
    color: #059669;
}

.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    height: 4px;
    background-color: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
    background-color: #dc2626;
}

.strength-bar.weak .strength-fill {
    background-color: #dc2626;
}

.strength-bar.weak-medium .strength-fill {
    background-color: #f59e0b;
}

.strength-bar.medium .strength-fill {
    background-color: #eab308;
}

.strength-bar.strong .strength-fill {
    background-color: #059669;
}

.strength-text {
    font-size: 0.75rem;
    color: #6b7280;
}

/* 移动端适配 */
@media (max-width: 576px) {
    .verification-input {
        flex-direction: column;
    }

    .verification-btn {
        min-width: auto;
    }
}

/* register.html 特有样式 */
.form-check-group {
    margin-bottom: 1.5rem;
}

.form-check-group .form-check {
    margin-bottom: 0.75rem;
}

.form-hint {
    display: block;
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.optional {
    color: #6c757d;
    font-weight: normal;
    font-size: 0.875rem;
}

/* 验证码输入组样式 */
.input-group {
    display: flex;
    /* 移除gap，让输入框和按钮紧密连接 */
}

.input-group .form-control {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.input-group .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    white-space: nowrap;
    min-width: 120px;
}

.btn-countdown {
    color: #6c757d;
}

/* 密码强度指示器变体 */
.strength-fill.weak {
    background-color: #dc2626;
}

.strength-fill.fair {
    background-color: #f59e0b;
}

.strength-fill.good {
    background-color: #eab308;
}

.strength-fill.strong {
    background-color: #059669;
}

/* 通用认证页面样式增强 */
.auth-alert {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    animation: slideInDown 0.3s ease-out;
}

.auth-alert i {
    font-size: 1.125rem;
    flex-shrink: 0;
}

.alert-message {
    flex: 1;
    line-height: 1.5;
}

.auth-alert .btn-close {
    background: none;
    border: none;
    opacity: 0.6;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

.auth-alert .btn-close:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.1);
}

.auth-alert .btn-close i {
    font-size: 0.75rem;
}

/* 动画效果 */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOutUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* 成功卡片样式 */
.success-card {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.success-icon {
    font-size: 4rem;
    color: #059669;
    margin-bottom: 1.5rem;
}

.success-card h3 {
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-weight: 600;
}

.success-card p {
    color: #6c757d;
    margin-bottom: 2rem;
    line-height: 1.6;
}