/* Forgot Password Page Styles - Extends auth styles */

.auth-container {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--background-secondary) 0%, var(--background-tertiary) 100%);
    padding: 2rem 1rem;
}

.auth-card {
    background: var(--background);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    border: 1px solid var(--border-light);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
}

.auth-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

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

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

.form-label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.form-input-container {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--background);
    color: var(--text-primary);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(10, 55, 85, 0.1);
}

.form-input.error {
    border-color: var(--error-color);
}

.form-input:disabled {
    background: var(--background-secondary);
    color: var(--text-secondary);
    cursor: not-allowed;
    opacity: 0.7;
}

.form-error {
    color: var(--error-color);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.form-error i {
    font-size: 0.7rem;
}

.auth-button {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.auth-button:hover:not(:disabled) {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.auth-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-button.loading {
    pointer-events: none;
}

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.9rem;
}

.auth-link:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.auth-links p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Help Text Section */
.help-text {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.help-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.help-item i {
    color: var(--primary-color);
    font-size: 0.9rem;
    width: 16px;
    flex-shrink: 0;
}

.help-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.help-item a:hover {
    text-decoration: underline;
}

/* Alert Styling */
.auth-alert {
    padding: 0.875rem 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-alert.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.auth-alert.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.auth-alert.warning {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fed7aa;
}

.auth-alert.info {
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #dbeafe;
}

.auth-alert i {
    font-size: 1rem;
    flex-shrink: 0;
}

/* Loading Animation */
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* FIXED: Remove success state styling that was causing issues */
/* This was making all inputs green and buttons disabled after success alert */

/* Responsive Design */
@media (max-width: 768px) {
    .auth-container {
        padding: 1rem;
        min-height: calc(100vh - 70px);
    }
    
    .auth-card {
        padding: 2rem;
        max-width: 100%;
    }
    
    .auth-title {
        font-size: 1.75rem;
    }
    
    .help-text {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem;
        border-radius: var(--border-radius-lg);
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    .auth-logo {
        width: 50px;
        height: 50px;
    }
    
    .help-item {
        font-size: 0.8rem;
    }
}

/* Focus and accessibility improvements */
.form-input:focus-visible,
.auth-button:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Animation for form transitions */
.form-group {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FIXED: Ensure button is always enabled unless explicitly loading */
.auth-button:not(.loading):not([disabled]) {
    background: var(--primary-color);
    cursor: pointer;
    opacity: 1;
}

/* FIXED: Ensure form inputs reset to normal state */
.form-input:not(.error):not(:disabled) {
    border-color: var(--border-color);
    background: var(--background);
    color: var(--text-primary);
}

.form-input:not(.error):not(:disabled):focus {
    border-color: var(--primary-color);
    background: var(--background);
}