/* ==========================================================
   KRILIH.MA
   MOT DE PASSE OUBLIE
   PREMIUM BLUE
   CORRECTION HEADER
   ========================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    width: 100%;
    min-height: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

body {
    width: 100%;
    min-height: 100vh;

    margin: 0 !important;
    padding: 0 !important;

    background: #f5f9ff;
    color: #0f172a;

    font-family: 'Poppins', sans-serif;
}


/* ==========================================================
   CONTENEUR DU HEADER DYNAMIQUE
   ========================================================== */

#main-header {
    width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    position: relative;

    z-index: 1000;
}

/* ==========================================================
   CONTENU PRINCIPAL
   ========================================================== */

.forgot-container {

    width: 100%;

    min-height:
        calc(100vh - 100px);

    display: flex;

    align-items: center;

    justify-content: center;

    padding:
        70px
        20px
        80px;

}


/* ==========================================================
   CARTE
   ========================================================== */

.forgot-card {

    position: relative;

    width: 100%;

    max-width: 540px;

    padding:
        48px;

    background:
        var(--forgot-card);

    border:
        1px solid
        var(--forgot-border);

    border-radius: 24px;

    box-shadow:
        var(--forgot-shadow);

    overflow: hidden;

    animation:
        forgotCardIn
        .55s
        ease
        both;

}


/* ==========================================================
   BARRE BLEUE SUPÉRIEURE
   ========================================================== */

.forgot-card::before {

    content: "";

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 5px;

    background:
        linear-gradient(
            90deg,
            #1d4ed8,
            #2563eb,
            #60a5fa
        );

}


/* ==========================================================
   ANIMATION
   ========================================================== */

@keyframes forgotCardIn {

    from {

        opacity: 0;

        transform:
            translateY(25px);

    }

    to {

        opacity: 1;

        transform:
            translateY(0);

    }

}


/* ==========================================================
   ICÔNE
   ========================================================== */

.forgot-card .icon {

    width: 92px;

    height: 92px;

    margin:
        8px
        auto
        28px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #60a5fa
        );

    color: #ffffff;

    font-size: 34px;

    box-shadow:
        0 12px 30px
        rgba(
            37,
            99,
            235,
            .22
        );

}


/* ==========================================================
   TITRE
   ========================================================== */

.forgot-card h1 {

    margin-bottom: 18px;

    text-align: center;

    color:
        var(--forgot-primary-dark);

    font-size: 34px;

    font-weight: 700;

    line-height: 1.25;

}


/* ==========================================================
   DESCRIPTION
   ========================================================== */

.forgot-card > p {

    max-width: 440px;

    margin:
        0
        auto
        34px;

    text-align: center;

    color:
        var(--forgot-text-soft);

    font-size: 15px;

    line-height: 1.8;

}


/* ==========================================================
   INPUT GROUP
   ========================================================== */

.input-group {

    width: 100%;

    margin-bottom: 24px;

}


/* ==========================================================
   LABEL
   ========================================================== */

.input-group label {

    display: block;

    margin-bottom: 9px;

    color:
        var(--forgot-text);

    font-size: 14px;

    font-weight: 600;

}


/* ==========================================================
   INPUT
   ========================================================== */

.input-group input {

    width: 100%;

    min-height: 56px;

    padding:
        0
        17px;

    border:
        1px solid
        var(--forgot-border);

    border-radius: 12px;

    outline: none;

    background:
        var(--forgot-input);

    color:
        var(--forgot-text);

    font-family:
        'Poppins',
        sans-serif;

    font-size: 15px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;

}


/* ==========================================================
   PLACEHOLDER
   ========================================================== */

.input-group input::placeholder {

    color:
        #94a3b8;

}


/* ==========================================================
   HOVER
   ========================================================== */

.input-group input:hover {

    border-color:
        #b8c7dc;

}


/* ==========================================================
   FOCUS
   ========================================================== */

.input-group input:focus {

    border-color:
        var(--forgot-primary);

    box-shadow:
        0 0 0 4px
        rgba(
            37,
            99,
            235,
            .12
        );

}


/* ==========================================================
   BOUTON
   ========================================================== */

.forgot-card button {

    width: 100%;

    min-height: 56px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    padding:
        0
        20px;

    border: none;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #1d4ed8
        );

    color: #ffffff;

    font-family:
        'Poppins',
        sans-serif;

    font-size: 15px;

    font-weight: 600;

    cursor: pointer;

    box-shadow:
        0 10px 25px
        rgba(
            37,
            99,
            235,
            .20
        );

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        filter .2s ease;

}


/* ==========================================================
   BOUTON HOVER
   ========================================================== */

.forgot-card button:hover {

    transform:
        translateY(-2px);

    background:
        linear-gradient(
            135deg,
            #1d4ed8,
            #1e40af
        );

    box-shadow:
        0 14px 30px
        rgba(
            37,
            99,
            235,
            .28
        );

}


/* ==========================================================
   BOUTON ACTIVE
   ========================================================== */

.forgot-card button:active {

    transform:
        translateY(0);

}


/* ==========================================================
   MESSAGE
   ========================================================== */

.message {

    min-height: 25px;

    margin-top: 20px;

    text-align: center;

    font-size: 14px;

    font-weight: 600;

}


/* ==========================================================
   MESSAGE SUCCESS
   ========================================================== */

.message.success {

    color:
        var(--forgot-success);

}


/* ==========================================================
   MESSAGE ERROR
   ========================================================== */

.message.error {

    color:
        var(--forgot-error);

}


/* ==========================================================
   LIENS
   ========================================================== */

.links {

    margin-top: 30px;

    padding-top: 24px;

    border-top:
        1px solid
        var(--forgot-border);

    text-align: center;

}


.links a {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    color:
        var(--forgot-primary);

    text-decoration: none;

    font-size: 14px;

    font-weight: 600;

    transition:
        color .2s ease,
        transform .2s ease;

}


.links a:hover {

    color:
        var(--forgot-primary-dark);

    transform:
        translateX(-2px);

}


/* ==========================================================
   FOOTER
   ========================================================== */

footer {

    width: 100%;

    margin-top: auto;

    background:
        #1e3a8a;

    color:
        #ffffff;

}


.footer-content {

    width:
        min(
            1200px,
            calc(100% - 40px)
        );

    margin:
        0
        auto;

    display: grid;

    grid-template-columns:
        repeat(
            3,
            1fr
        );

    gap: 40px;

    padding:
        42px
        0;

}


.footer-content h3 {

    margin-bottom: 12px;

    color: #ffffff;

    font-size: 20px;

}


.footer-content p {

    color:
        rgba(
            255,
            255,
            255,
            .80
        );

    font-size: 14px;

    line-height: 1.7;

}


.footer-content a {

    display: block;

    width: fit-content;

    margin-bottom: 10px;

    color:
        rgba(
            255,
            255,
            255,
            .88
        );

    text-decoration: none;

    font-size: 14px;

    transition:
        color .2s ease,
        transform .2s ease;

}


.footer-content a:hover {

    color:
        #bfdbfe;

    transform:
        translateX(3px);

}


.footer-content > div:last-child {

    display: flex;

    align-items: flex-start;

    gap: 10px;

}


.footer-content > div:last-child a {

    width: 40px;

    height: 40px;

    margin: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid
        rgba(
            255,
            255,
            255,
            .20
        );

    border-radius: 50%;

    background:
        rgba(
            255,
            255,
            255,
            .08
        );

}


.footer-content > div:last-child a:hover {

    transform:
        translateY(-3px);

    background:
        rgba(
            255,
            255,
            255,
            .16
        );

}


.copyright {

    padding:
        18px
        20px;

    border-top:
        1px solid
        rgba(
            255,
            255,
            255,
            .15
        );

    text-align: center;

    color:
        rgba(
            255,
            255,
            255,
            .70
        );

    font-size: 13px;

}


/* ==========================================================
   MODE NUIT
   ========================================================== */

html.dark body,
body.dark {

    background:
        #08111f;

    color:
        #f8fafc;

}


html.dark .forgot-container,
body.dark .forgot-container {

    background:
        #08111f;

}


html.dark .forgot-card,
body.dark .forgot-card {

    background:
        #0f1b2d;

    border-color:
        #1e3a5f;

    box-shadow:
        0 25px 70px
        rgba(
            0,
            0,
            0,
            .40
        );

}


html.dark .forgot-card h1,
body.dark .forgot-card h1 {

    color:
        #60a5fa;

}


html.dark .forgot-card > p,
body.dark .forgot-card > p {

    color:
        #94a3b8;

}


html.dark .input-group label,
body.dark .input-group label {

    color:
        #e2e8f0;

}


html.dark .input-group input,
body.dark .input-group input {

    background:
        #0b1626;

    border-color:
        #29415f;

    color:
        #f8fafc;

}


html.dark .input-group input:hover,
body.dark .input-group input:hover {

    border-color:
        #3b5d82;

}


html.dark .input-group input:focus,
body.dark .input-group input:focus {

    border-color:
        #3b82f6;

    box-shadow:
        0 0 0 4px
        rgba(
            59,
            130,
            246,
            .15
        );

}


html.dark .input-group input::placeholder,
body.dark .input-group input::placeholder {

    color:
        #64748b;

}


html.dark .links,
body.dark .links {

    border-color:
        #243852;

}


html.dark .links a,
body.dark .links a {

    color:
        #60a5fa;

}


html.dark .links a:hover,
body.dark .links a:hover {

    color:
        #93c5fd;

}


html.dark footer,
body.dark footer {

    background:
        #060d18;

}


/* ==========================================================
   MODE NUIT — DATA THEME
   ========================================================== */

html[data-theme="dark"] body {

    background:
        #08111f;

    color:
        #f8fafc;

}


html[data-theme="dark"] .forgot-card {

    background:
        #0f1b2d;

    border-color:
        #1e3a5f;

}


html[data-theme="dark"] .forgot-card h1 {

    color:
        #60a5fa;

}


html[data-theme="dark"] .forgot-card > p {

    color:
        #94a3b8;

}


html[data-theme="dark"] .input-group label {

    color:
        #e2e8f0;

}


html[data-theme="dark"] .input-group input {

    background:
        #0b1626;

    border-color:
        #29415f;

    color:
        #f8fafc;

}


html[data-theme="dark"] .links {

    border-color:
        #243852;

}


html[data-theme="dark"] .links a {

    color:
        #60a5fa;

}


html[data-theme="dark"] footer {

    background:
        #060d18;

}


/* ==========================================================
   RESPONSIVE TABLETTE
   ========================================================== */

@media (max-width: 900px) {

    .forgot-container {

        min-height:
            auto;

        padding:
            55px
            20px
            70px;

    }


    .footer-content {

        grid-template-columns:
            repeat(
                2,
                1fr
            );

    }

}


/* ==========================================================
   RESPONSIVE MOBILE
   ========================================================== */

@media (max-width: 600px) {

    .forgot-container {

        padding:
            35px
            15px
            55px;

    }


    .forgot-card {

        padding:
            40px
            22px;

        border-radius:
            20px;

    }


    .forgot-card .icon {

        width:
            76px;

        height:
            76px;

        margin-bottom:
            22px;

        font-size:
            28px;

    }


    .forgot-card h1 {

        font-size:
            27px;

    }


    .forgot-card > p {

        font-size:
            14px;

        line-height:
            1.7;

    }


    .input-group input {

        min-height:
            54px;

        font-size:
            14px;

    }


    .forgot-card button {

        min-height:
            54px;

        font-size:
            15px;

    }


    .footer-content {

        width:
            calc(
                100% - 30px
            );

        grid-template-columns:
            1fr;

        gap:
            25px;

        padding:
            35px
            0;

    }

}


/* ==========================================================
   PETITS ÉCRANS
   ========================================================== */

@media (max-width: 380px) {

    .forgot-card {

        padding:
            35px
            18px;

    }


    .forgot-card h1 {

        font-size:
            24px;

    }

}


/* ==========================================================
   ACCESSIBILITÉ
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    .forgot-card {

        animation:
            none;

    }


    .forgot-card button,
    .links a {

        transition:
            none;

    }

}