/* ============================================================
   Forgot Password Page Styles
   ============================================================ */

.forgot-page {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.forgot-bg {
    position: fixed;
    inset: 0;
    background-image: var(--bg-img);
    background-size: cover;
    background-position: center;
    filter: blur(8px) brightness(0.7);
    z-index: -1;
}

.forgot-content {
    position: relative;
    z-index: 1;
}

.forgot-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
}

.forgot-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.forgot-brand-link {
    display: inline-block;
    transition: transform 0.2s ease;
}

.forgot-brand-link:hover {
    transform: scale(1.05);
}

.forgot-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 50%;
    color: white;
    font-size: 24px;
}

.forgot-icon-wrapper.forgot-icon-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.forgot-icon-wrapper.forgot-icon-success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.forgot-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.forgot-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
}

.forgot-email {
    font-size: 0.95rem;
    font-weight: 600;
    color: #3b82f6;
}

/* Form Styling */
.forgot-card .form-label {
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
}

.forgot-card .form-control {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.forgot-card .form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.forgot-card .input-group-text {
    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-right: none;
    color: #6b7280;
}

.forgot-card .input-group .form-control {
    border-left: none;
}

.forgot-card .input-group .form-control:focus {
    border-left: none;
}

.forgot-card .input-group .btn-outline-secondary {
    border-left: none;
    border-color: #d1d5db;
    color: #6b7280;
}

.forgot-card .input-group .btn-outline-secondary:hover {
    background: #f3f4f6;
    color: #374151;
}

/* Submit Button */
.forgot-submit {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.forgot-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Code Input Group */
.code-input-group {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.code-input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.code-input:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.code-input.filled {
    border-color: #10b981;
    background: #ecfdf5;
}

/* Resend Section */
.resend-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
}

.resend-text {
    font-size: 0.875rem;
    color: #6b7280;
}

.resend-btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.resend-timer {
    font-size: 0.8rem;
}

/* Alerts */
.forgot-alert {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

.forgot-alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.forgot-alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.forgot-alert i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.forgot-alert strong {
    display: block;
    margin-bottom: 0.25rem;
}

/* Footer */
.forgot-footer {
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
}

.forgot-back-link {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.forgot-back-link:hover {
    color: #3b82f6;
}

/* Info Box */
.forgot-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
}

.forgot-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.forgot-info-item i {
    font-size: 1rem;
}

/* Password Requirements */
.password-requirements {
    background: #f9fafb;
    border-radius: 8px;
    padding: 0.75rem;
}

.password-req-list {
    list-style: none;
    padding-left: 0;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem;
}

.password-req-list li {
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.password-req-list li i {
    font-size: 0.6rem;
}

.password-req-list li.valid {
    color: #10b981;
}

.password-req-list li.valid i::before {
    content: "\F26B";
}

/* Validation States */
.form-control.is-invalid {
    border-color: #ef4444;
}

.invalid-feedback {
    display: none;
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.invalid-feedback.show {
    display: block;
}

/* Responsive */
@media (max-width: 576px) {
    .forgot-card .card-body {
        padding: 1.5rem !important;
    }

    .code-input {
        width: 42px;
        height: 50px;
        font-size: 1.25rem;
    }

    .forgot-info {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .password-req-list {
        grid-template-columns: 1fr;
    }
}
