﻿/* =========================================
   FORGOT PASSWORD MODAL
   ========================================= */

.forgot-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(7, 30, 61, 0.68);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

    /* OPEN STATE */
    .forgot-modal.is-open {
        display: flex;
    }

/* =========================================
   MODAL CARD
   ========================================= */

.forgot-modal-card {
    position: relative;
    width: 100%;
    max-width: 470px;
    background: #ffffff;
    border-radius: 22px;
    padding: 42px 38px 34px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.30), 0 10px 35px rgba(25, 89, 165, 0.18);
    animation: forgotModalIn 0.25s ease-out;
}

@keyframes forgotModalIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =========================================
   GOLD ACCENT
   ========================================= */

.forgot-gold-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 68px;
    height: 4px;
    background: #f5bd22;
    border-radius: 0 0 8px 8px;
}

/* =========================================
   CLOSE BUTTON
   ========================================= */

.forgot-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .forgot-close:hover {
        background: #1959a5;
        color: #ffffff;
        transform: rotate(90deg);
    }

/* =========================================
   ICON
   ========================================= */

.forgot-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #1959a5;
    background: linear-gradient( 135deg, #eef6ff, #dcecff );
    box-shadow: 0 8px 25px rgba(25, 89, 165, 0.14), inset 0 0 0 1px rgba(25, 89, 165, 0.08);
}

/* =========================================
   TITLE
   ========================================= */

.forgot-title {
    margin: 0;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #174f91;
}

.forgot-description {
    max-width: 360px;
    margin: 9px auto 25px;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #718096;
}

/* =========================================
   FORM FIELD
   ========================================= */

.forgot-field label {
    display: block;
    margin-bottom: 8px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.forgot-input-wrapper {
    position: relative;
}

    .forgot-input-wrapper svg {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #1959a5;
        pointer-events: none;
    }

    .forgot-input-wrapper input {
        width: 100%;
        height: 50px;
        padding: 0 15px 0 45px;
        border: 1px solid #dbe3ec;
        border-radius: 12px;
        outline: none;
        background: #ffffff;
        color: #334155;
        font-family: Arial, sans-serif;
        font-size: 14px;
        box-sizing: border-box;
        transition: all 0.2s ease;
    }

        .forgot-input-wrapper input::placeholder {
            color: #94a3b8;
        }

        .forgot-input-wrapper input:focus {
            border-color: #1959a5;
            box-shadow: 0 0 0 4px rgba(25, 89, 165, 0.10);
        }

/* =========================================
   ACTION BUTTONS
   ========================================= */

.forgot-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 26px;
}

.forgot-btn {
    height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 10px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.forgot-btn-close {
    background: #f1f5f9;
    color: #475569;
}

    .forgot-btn-close:hover {
        background: #e2e8f0;
    }

.forgot-btn-send {
    color: #ffffff;
    background: linear-gradient( 135deg, #1768b5, #174f91 );
    box-shadow: 0 7px 18px rgba(23, 79, 145, 0.22);
}

    .forgot-btn-send:hover {
        transform: translateY(-1px);
        box-shadow: 0 10px 25px rgba(23, 79, 145, 0.30);
    }

    .forgot-btn-send span {
        margin-left: 5px;
    }

/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 480px) {

    .forgot-modal {
        padding: 15px;
    }

    .forgot-modal-card {
        padding: 38px 22px 25px;
        border-radius: 18px;
    }

    .forgot-title {
        font-size: 21px;
    }

    .forgot-actions {
        flex-direction: column-reverse;
    }

    .forgot-btn {
        width: 100%;
    }
}
.forgot-btn-send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.forgot-send-icon {
    flex-shrink: 0;
}
.forgot-field {
    position: relative;
    margin-bottom: 28px;
}

.forgot-input-wrapper {
    position: relative;
}

#EmailErrorTxt {
    position: absolute;
    left: 0;
    top: calc(100% + 6px);
    display: block;
    color: #dc2626;
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 18px;
}