/**
 * Forgot Password & Reset Password Styles
 * Consistent with change-password.css design
 */

/* Container */
.forgot-password-form,
.reset-password-form {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.form-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
    padding: 2rem;
}

/* Header */
.form-container h2 {
    color: #2d7a3e;
    margin: 0 0 1rem 0;
    font-size: 1.75rem;
    text-align: center;
}

.form-description {
    color: #666;
    margin: 0 0 2rem 0;
    text-align: center;
    font-size: 0.938rem;
    line-height: 1.5;
}

/* Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.auth-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.auth-form label {
    font-weight: 600;
    color: #333;
    font-size: 0.938rem;
}

.auth-form input {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.auth-form input:focus {
    outline: none;
    border-color: #2d7a3e;
    box-shadow: 0 0 0 3px rgba(45, 122, 62, 0.1);
}

.auth-form input:invalid {
    border-color: #dc3545;
}

.auth-form small {
    color: #666;
    font-size: 0.875rem;
}

/* Footer */
.form-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.form-footer .link {
    color: #2d7a3e;
    text-decoration: none;
    font-size: 0.938rem;
    transition: color 0.2s;
}

.form-footer .link:hover {
    color: #1f5a2c;
    text-decoration: underline;
}

/* Success Message */
.success-message {
    display: none;
    background: #d4edda;
    border-left: 4px solid #28a745;
    color: #155724;
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1rem;
}

.success-message p {
    margin: 0 0 1rem;
}

.success-message p:last-child {
    margin-bottom: 0;
}

.success-message strong {
    font-weight: 600;
}

.info-text {
    font-size: 0.875rem;
    color: #0c5460;
}

/* Error Message */
.error-message {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
    padding: 1rem;
    border-radius: 4px;
}

.error-message p {
    margin: 0 0 1rem;
}

.error-message p:last-child {
    margin-bottom: 0;
}

.error-message strong {
    font-weight: 600;
}

.error-message .btn {
    margin-top: 1rem;
}

/* Login Footer (for "forgot password" link on login page) */
.login-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.login-footer .link {
    color: #2d7a3e;
    text-decoration: none;
    font-size: 0.938rem;
    transition: color 0.2s;
}

.login-footer .link:hover {
    color: #1f5a2c;
    text-decoration: underline;
}

/* Button modifier */
.btn--full-width {
    width: 100%;
}

/* Responsive Design */
@media (max-width: 576px) {
    .forgot-password-form,
    .reset-password-form {
        padding: 1rem;
    }

    .form-container {
        padding: 1.5rem;
    }

    .form-container h2 {
        font-size: 1.5rem;
    }
}
