.forgot-password-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
}

.forgot-password-modal.show {
    display: flex;
}

.forgot-password-modal .modal-content {
    width: min(500px, 100%);
    max-height: min(90vh, 760px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    animation: forgotPasswordSlideUp 0.25s ease-out;
}

.forgot-password-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.forgot-password-modal .modal-header h2 {
    margin: 0;
    color: #0b1f3a;
    font-size: 1.2rem;
    font-weight: 700;
}

.forgot-password-modal .modal-close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #334155;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.forgot-password-modal .modal-close:hover {
    background: #e2e8f0;
}

.forgot-password-modal .modal-form-layout {
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.forgot-password-modal .modal-scroll-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.forgot-password-modal .modal-desc {
    margin: 0 0 1rem;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}

.forgot-password-modal .form-alert {
    margin: 0 0 1rem;
}

.forgot-password-modal .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.forgot-password-modal .form-group label {
    color: #475569;
    font-size: 0.875rem;
    font-weight: 600;
}

.forgot-password-modal .form-group input {
    width: 100%;
    min-height: 44px;
    padding: 0.7rem 0.9rem;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #1e293b;
    font: inherit;
}

.forgot-password-modal .form-group input:focus {
    outline: none;
    border-color: #0b1f3a;
    box-shadow: 0 0 0 3px rgba(11, 31, 58, 0.08);
}

.forgot-password-modal .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.forgot-password-modal .btn {
    min-height: 40px;
    padding: 0.6rem 1rem;
    border: 0;
    border-radius: 8px;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.forgot-password-modal .btn:disabled {
    cursor: wait;
    opacity: 0.65;
}

.forgot-password-modal .btn-primary {
    background: #0b1f3a;
    color: #fff;
}

.forgot-password-modal .btn-primary:hover:not(:disabled) {
    background: #16325c;
}

.forgot-password-modal .btn-secondary {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
}

.forgot-password-modal .btn-secondary:hover:not(:disabled) {
    background: #f8fafc;
}

.forgot-password-modal [hidden] {
    display: none !important;
}

@keyframes forgotPasswordSlideUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .forgot-password-modal .modal-content {
        max-height: 94vh;
    }

    .forgot-password-modal .modal-header,
    .forgot-password-modal .modal-scroll-body {
        padding: 1rem;
    }

    .forgot-password-modal .form-actions {
        padding: 0.85rem 1rem;
    }
}
