/* Forgot Password & Reset Password Styles */

/* Override login icon for forgot password pages */
.login-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    opacity: 0.9;
}

/* User info display */
.user-info {
    background-color: var(--surface-variant);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-md);
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.user-info p {
    margin: 5px 0;
    color: var(--text);
}

.user-info strong {
    color: var(--primary);
}

.user-info small {
    color: var(--text-secondary);
    font-size: 0.9em;
}

/* Enhanced password input wrapper */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-wrapper input {
    padding-right: 45px !important;
}

.password-toggle {
    position: absolute;
    right: 12px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    z-index: 10;
}

.password-toggle:hover {
    color: var(--primary);
}

/* Password strength indicator */
.password-strength {
    margin-top: 8px;
    margin-bottom: 10px;
}

.strength-bar {
    width: 100%;
    height: 4px;
    background-color: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-fill.weak {
    background-color: #e74c3c;
    width: 25%;
}

.strength-fill.fair {
    background-color: #f39c12;
    width: 50%;
}

.strength-fill.good {
    background-color: #3498db;
    width: 75%;
}

.strength-fill.strong {
    background-color: #27ae60;
    width: 100%;
}

.strength-text {
    font-size: 0.85em;
    color: var(--text-secondary);
    text-align: center;
}

.strength-text.weak {
    color: #e74c3c;
}

.strength-text.fair {
    color: #f39c12;
}

.strength-text.good {
    color: #3498db;
}

.strength-text.strong {
    color: #27ae60;
}

/* Password match indicator */
.password-match {
    margin-top: 5px;
    font-size: 0.85em;
    padding: 5px 0;
}

.password-match.match {
    color: #27ae60;
}

.password-match.no-match {
    color: #e74c3c;
}

/* Password requirements */
.password-requirements {
    background-color: var(--surface-variant);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-md);
    padding: 15px;
    margin-bottom: 20px;
}

.password-requirements h4 {
    margin: 0 0 10px 0;
    color: var(--text);
    font-size: 0.9em;
    font-weight: 600;
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.password-requirements li {
    padding: 3px 0;
    font-size: 0.85em;
    color: var(--text-secondary);
    position: relative;
    padding-left: 20px;
}

.password-requirements li:before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--border);
    transition: color 0.3s ease;
}

.password-requirements li.met {
    color: #27ae60;
}

.password-requirements li.met:before {
    color: #27ae60;
}

.password-requirements li.not-met:before {
    content: '\f00d';
    color: #e74c3c;
}

/* Security information */
.security-info-container {
    margin-top: 20px;
}

.security-info {
    background-color: var(--surface-variant);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-md);
    padding: 15px;
    margin-top: 20px;
}

.security-info h3 {
    margin: 0 0 10px 0;
    font-size: 0.95em;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.security-info h3 i {
    color: var(--primary);
}

.security-info ul {
    margin: 0;
    padding-left: 20px;
}

.security-info li {
    font-size: 0.85em;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

/* Token expiration warning */
.token-expiry-warning {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #f39c12;
    color: white;
    padding: 12px 20px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-elevation-2);
    z-index: 1000;
    animation: slideDown 0.5s ease-out;
}

.warning-content {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    font-weight: 500;
}

.token-expiry-warning.danger {
    background-color: #e74c3c;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Enhanced form styles */
.btn-submit:disabled {
    background-color: var(--border);
    color: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-submit:disabled:hover {
    background-color: var(--border);
    transform: none;
}

/* Back to login link styling */
.back-to-login-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.back-to-login-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.back-to-login-link i {
    font-size: 0.9em;
}

/* Enhanced flash messages for password reset context */
.flash-message.success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.flash-message.error {
    background-color: #f8d7da;
    border-color: #f1b0b7;
    color: #721c24;
}

/* Responsive design */
@media (max-width: 768px) {
    .login-card {
        margin: 10px;
        padding: 30px 20px;
    }
    
    .login-icon {
        font-size: 3rem;
    }
    
    .password-requirements {
        padding: 12px;
    }
    
    .security-info {
        padding: 12px;
    }
    
    .token-expiry-warning {
        left: 10px;
        right: 10px;
        transform: none;
    }
}

/* Dark mode support (if implemented) */
@media (prefers-color-scheme: dark) {
    .password-requirements,
    .security-info,
    .user-info {
        background-color: var(--surface-dark, #2a2a2a);
        border-color: var(--border-dark, #404040);
    }
}

/* Print styles */
@media print {
    .token-expiry-warning,
    .password-toggle {
        display: none !important;
    }
}