/* ==========================================================
   KRILIH.MA
   css/connexion.css
   CONNEXION — STYLE PREMIUM
   ========================================================== */

:root {
    --conn-green: #0f766e;
    --conn-green-light: #14b8a6;
    --conn-green-dark: #0b5f59;

    --conn-orange: #f59e0b;

    --conn-bg: #f7fbfa;
    --conn-white: #ffffff;

    --conn-text: #17201e;
    --conn-muted: #6b7773;

    --conn-border: rgba(15, 118, 110, 0.12);

    --conn-radius: 24px;

    --conn-transition:
        .28s cubic-bezier(.2,.8,.2,1);
}


/* ==========================================================
   PAGE
   ========================================================== */

.auth-page {
    position: relative;

    width: 100%;

    padding: 55px 20px 75px;

    background:
        linear-gradient(
            180deg,
            #f8fffd 0%,
            #f4faf8 55%,
            #ffffff 100%
        );

    overflow: hidden;
}


/* ==========================================================
   DECORATION
   ========================================================== */

.auth-page::before {
    content: "";

    position: absolute;

    width: 400px;
    height: 400px;

    left: -220px;
    top: -180px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(20,184,166,.16),
            transparent 70%
        );

    pointer-events: none;
}


.auth-page::after {
    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    right: -170px;
    bottom: -160px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(245,158,11,.14),
            transparent 70%
        );

    pointer-events: none;
}


/* ==========================================================
   CONTAINER
   ========================================================== */

.auth-container {
    position: relative;

    z-index: 2;

    width: min(100%, 470px);

    margin: 0 auto;
}


/* ==========================================================
   CARD
   ========================================================== */

.auth-card {
    position: relative;

    width: 100%;

    padding: 38px;

    background:
        rgba(255,255,255,.90);

    border:
        1px solid
        rgba(15,118,110,.12);

    border-radius:
        var(--conn-radius);

    box-shadow:
        0 20px 55px rgba(15,118,110,.10);

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);

    overflow: hidden;
}


/* reflet supérieur */

.auth-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 8%;
    right: 8%;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.95),
            transparent
        );

    pointer-events: none;
}


/* ==========================================================
   HEADER CONNEXION
   ========================================================== */

.auth-header {
    text-align: center;

    margin-bottom: 30px;
}


/* ==========================================================
   ICONE
   ========================================================== */

.auth-icon {
    position: relative;

    width: 68px;
    height: 68px;

    margin: 0 auto 18px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            var(--conn-green-light),
            var(--conn-green)
        );

    color: #ffffff;

    font-size: 26px;

    box-shadow:
        0 12px 28px rgba(15,118,110,.22),

        inset
        0 1px 0
        rgba(255,255,255,.35);
}


/* ==========================================================
   TITRE
   ========================================================== */

.auth-header h1 {
    margin: 0 0 9px;

    color:
        var(--conn-text);

    font-size: 34px;

    font-weight: 800;

    line-height: 1.15;

    letter-spacing: -1px;
}


/* ==========================================================
   DESCRIPTION
   ========================================================== */

.auth-header p {
    max-width: 390px;

    margin: 0 auto;

    color:
        var(--conn-muted);

    font-size: 14px;

    line-height: 1.7;
}


/* ==========================================================
   FORMULAIRE
   ========================================================== */

#loginForm {
    display: flex;

    flex-direction: column;

    gap: 19px;
}


/* ==========================================================
   GROUP
   ========================================================== */

.form-group {
    width: 100%;
}


/* ==========================================================
   LABEL
   ========================================================== */

.form-group label {
    display: block;

    margin: 0 0 8px 3px;

    color:
        var(--conn-text);

    font-size: 13px;

    font-weight: 700;
}


/* ==========================================================
   INPUT BOX
   ========================================================== */

.input-box {
    position: relative;

    display: flex;

    align-items: center;

    width: 100%;

    height: 57px;

    background:
        #ffffff;

    border:
        1px solid
        rgba(15,118,110,.14);

    border-radius: 15px;

    box-shadow:
        0 5px 18px rgba(0,0,0,.035);

    transition:
        border-color .25s ease,
        box-shadow .25s ease,
        transform .25s ease;
}


.input-box:focus-within {
    border-color:
        rgba(20,184,166,.65);

    box-shadow:
        0 0 0 4px
        rgba(20,184,166,.10),

        0 10px 25px
        rgba(15,118,110,.08);

    transform:
        translateY(-1px);
}


/* ==========================================================
   ICONE INPUT
   ========================================================== */

.input-box > i {
    width: 48px;

    flex-shrink: 0;

    text-align: center;

    color:
        var(--conn-green);

    font-size: 15px;
}


/* ==========================================================
   INPUT
   ========================================================== */

.input-box input {
    width: 100%;

    height: 100%;

    min-width: 0;

    padding: 0 15px 0 0;

    border: 0 !important;

    outline: none !important;

    background: transparent !important;

    color:
        var(--conn-text);

    font-family: inherit;

    font-size: 14px;
}


/* ==========================================================
   SUPPRIMER BORDURE ROUGE INPUT
   ========================================================== */

.input-box input:invalid {
    border: none !important;

    outline: none !important;

    box-shadow: none !important;
}


.input-box:has(input:invalid) {
    border-color:
        rgba(15,118,110,.14) !important;

    box-shadow:
        0 5px 18px rgba(0,0,0,.035) !important;
}


/* ==========================================================
   PLACEHOLDER
   ========================================================== */

.input-box input::placeholder {
    color:
        #89938f;

    opacity: .8;
}


/* ==========================================================
   ERREUR
   ========================================================== */

.form-error {
    display: block;

    min-height: 0;

    margin: -5px 0 0;

    padding: 0;

    color: #dc2626;

    font-size: 12px;

    font-weight: 600;

    line-height: 1.5;

    border: 0 !important;

    background: transparent !important;

    box-shadow: none !important;
}


/* ==========================================================
   BOUTON
   FORCE VISIBILITE
   ========================================================== */

#loginForm .auth-btn,
#loginForm button[type="submit"] {

    position: relative;

    isolation: isolate;

    overflow: hidden;

    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    width: 100% !important;

    min-width: 100% !important;

    height: 56px !important;

    min-height: 56px !important;

    margin: 3px 0 0 !important;

    padding: 0 20px !important;

    border:
        1px solid
        rgba(255,255,255,.35) !important;

    outline: none !important;

    border-radius: 16px !important;

    background:
        linear-gradient(
            135deg,
            #14b8a6,
            #0f766e
        ) !important;

    color: #ffffff !important;

    font-family: inherit !important;

    font-size: 14px !important;

    font-weight: 800 !important;

    line-height: 1 !important;

    text-align: center !important;

    cursor: pointer !important;

    opacity: 1 !important;

    visibility: visible !important;

    box-shadow:
        0 10px 25px
        rgba(15,118,110,.25),

        inset
        0 1px 0
        rgba(255,255,255,.30) !important;

    transform: none;

    transition:
        transform .28s ease,
        background .28s ease,
        box-shadow .28s ease !important;
}


/* ==========================================================
   TEXTE + ICONE DU BOUTON
   ========================================================== */

#loginForm .auth-btn i,
#loginForm button[type="submit"] i {

    display: inline-block !important;

    visibility: visible !important;

    opacity: 1 !important;

    color: #ffffff !important;

    font-size: 14px;

}


/* ==========================================================
   REFLET LIQUIDE
   ========================================================== */

#loginForm .auth-btn::before,
#loginForm button[type="submit"]::before {

    content: "";

    position: absolute;

    inset: 1px;

    z-index: -1;

    border-radius: inherit;

    background:
        linear-gradient(
            120deg,
            rgba(255,255,255,.30),
            rgba(255,255,255,.06) 35%,
            transparent 65%
        );

    pointer-events: none;
}


/* ==========================================================
   LUMIERE LIQUIDE
   ========================================================== */

#loginForm .auth-btn::after,
#loginForm button[type="submit"]::after {

    content: "";

    position: absolute;

    top: -100%;
    left: -40%;

    width: 32%;
    height: 300%;

    transform:
        rotate(25deg)
        translateX(-180%);

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.65),
            transparent
        );

    filter:
        blur(3px);

    pointer-events: none;

    transition:
        transform .65s
        cubic-bezier(.16,1,.3,1);
}


/* ==========================================================
   HOVER
   ========================================================== */

#loginForm .auth-btn:hover,
#loginForm button[type="submit"]:hover {

    background:
        linear-gradient(
            135deg,
            #14b8a6,
            #f59e0b
        ) !important;

    transform:
        translateY(-3px) !important;

    box-shadow:
        0 16px 35px
        rgba(15,118,110,.24),

        0 5px 18px
        rgba(245,158,11,.12) !important;
}


#loginForm .auth-btn:hover::after,
#loginForm button[type="submit"]:hover::after {

    transform:
        rotate(25deg)
        translateX(520%);
}


/* ==========================================================
   ACTIVE
   ========================================================== */

#loginForm .auth-btn:active,
#loginForm button[type="submit"]:active {

    transform:
        translateY(1px)
        scale(.97) !important;
}


/* ==========================================================
   FOCUS BOUTON
   ========================================================== */

#loginForm .auth-btn:focus,
#loginForm .auth-btn:focus-visible,
#loginForm button[type="submit"]:focus,
#loginForm button[type="submit"]:focus-visible {

    outline: none !important;

    border-color:
        rgba(255,255,255,.35) !important;

    box-shadow:
        0 0 0 4px
        rgba(20,184,166,.16),

        0 12px 30px
        rgba(15,118,110,.22) !important;
}


/* ==========================================================
   OPTIONS
   ========================================================== */

.auth-options {

    display: flex;

    align-items: center;

    justify-content: center;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 24px;

    font-size: 12px;

    color:
        var(--conn-muted);
}


.auth-options a,
.auth-back a {

    display: inline-flex;

    align-items: center;

    gap: 7px;

    color:
        var(--conn-green);

    text-decoration: none;

    font-weight: 700;

    transition:
        color .25s ease,
        transform .25s ease;
}


.auth-options a:hover,
.auth-back a:hover {

    color:
        var(--conn-orange);

    transform:
        translateY(-1px);
}


/* ==========================================================
   RETOUR
   ========================================================== */

.auth-back {

    display: flex;

    justify-content: center;

    margin-top: 23px;

    padding-top: 21px;

    border-top:
        1px solid
        rgba(15,118,110,.10);

    font-size: 12px;
}


/* ==========================================================
   FOOTER — IDENTIQUE ANNONCES
   ========================================================== */

.site-footer {

    position: relative;

    width: 100%;

    margin-top: 0;

    background:
        linear-gradient(
            145deg,
            #07110d 0%,
            #0b1712 45%,
            #101612 100%
        );

    color: #ffffff;

    overflow: hidden;

    border-top:
        1px solid
        rgba(255,255,255,.08);
}


.site-footer::before {

    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    top: -260px;
    left: -120px;

    background:
        radial-gradient(
            circle,
            rgba(30,180,110,.20),
            transparent 70%
        );

    pointer-events: none;
}


.site-footer::after {

    content: "";

    position: absolute;

    width: 380px;
    height: 380px;

    right: -150px;
    bottom: -250px;

    background:
        radial-gradient(
            circle,
            rgba(255,145,0,.16),
            transparent 70%
        );

    pointer-events: none;
}


.footer-container {

    position: relative;

    z-index: 2;

    width:
        min(
            1180px,
            calc(100% - 40px)
        );

    margin: 0 auto;

    padding: 65px 0 55px;

    display: grid;

    grid-template-columns:
        minmax(260px,1.5fr)
        repeat(2,minmax(180px,1fr))
        minmax(190px,1fr);

    gap: 55px;
}


.footer-brand {
    min-width: 0;
}


.footer-logo {

    display: inline-flex;

    align-items: baseline;

    color: #ffffff;

    text-decoration: none;

    font-size: 30px;

    font-weight: 800;

    letter-spacing: -1px;

}


.footer-logo span {
    color: #ff8a00;
}


.footer-description {

    max-width: 350px;

    margin: 18px 0 0;

    color:
        rgba(255,255,255,.62);

    font-size: 14px;

    line-height: 1.8;
}


.footer-column {
    min-width: 0;
}


.footer-column h3 {

    margin: 3px 0 22px;

    color: #ffffff;

    font-size: 15px;

    font-weight: 700;
}


.footer-column h3::after {

    content: "";

    display: block;

    width: 28px;

    height: 2px;

    margin-top: 9px;

    border-radius: 20px;

    background:
        linear-gradient(
            90deg,
            #18a86b,
            #ff8a00
        );
}


.footer-links {

    display: flex;

    flex-direction: column;

    gap: 9px;
}


.footer-links a {

    display: flex;

    align-items: center;

    gap: 11px;

    width: 100%;

    padding: 7px 9px;

    border-radius: 9px;

    color:
        rgba(255,255,255,.60);

    text-decoration: none;

    font-size: 13px;

    transition:
        color .25s ease,
        background .25s ease,
        transform .25s ease;
}


.footer-links a i {

    width: 17px;

    text-align: center;

    color:
        rgba(255,255,255,.42);
}


.footer-links a:hover {

    color: #ffffff;

    background:
        rgba(255,255,255,.06);

    transform:
        translateX(4px);
}


.footer-links a:hover i {

    color: #ff8a00;
}


.footer-social p {

    max-width: 220px;

    margin: 0 0 20px;

    color:
        rgba(255,255,255,.55);

    font-size: 13px;

    line-height: 1.7;
}


.social-icons {

    display: flex;

    gap: 10px;
}


.social-icons a {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 42px;

    height: 42px;

    border:
        1px solid
        rgba(255,255,255,.10);

    border-radius: 13px;

    color:
        rgba(255,255,255,.72);

    background:
        rgba(255,255,255,.045);

    text-decoration: none;

    transition:
        transform .3s ease,
        color .3s ease,
        background .3s ease;
}


.social-icons a:hover {

    transform:
        translateY(-5px);

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            rgba(20,165,105,.28),
            rgba(255,138,0,.20)
        );
}


/* ==========================================================
   FOOTER BOTTOM
   ========================================================== */

.footer-bottom {

    position: relative;

    z-index: 2;

    border-top:
        1px solid
        rgba(255,255,255,.07);

    background:
        rgba(0,0,0,.16);
}


.footer-bottom-inner {

    width:
        min(
            1180px,
            calc(100% - 40px)
        );

    min-height: 68px;

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;
}


.footer-bottom p {

    margin: 0;

    color:
        rgba(255,255,255,.45);

    font-size: 12px;
}


.footer-bottom strong {

    color:
        rgba(255,255,255,.75);
}


.footer-status {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    color:
        rgba(255,255,255,.42);

    font-size: 11px;
}


.status-dot {

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background:
        #20c77a;

    box-shadow:
        0 0 0 4px
        rgba(32,199,122,.10),

        0 0 12px
        rgba(32,199,122,.45);
}


/* ==========================================================
   DARK MODE
   ========================================================== */

[data-theme="dark"] .auth-page {

    background:
        linear-gradient(
            180deg,
            #071d1b 0%,
            #081412 100%
        );
}


[data-theme="dark"] .auth-card {

    background:
        rgba(15,23,42,.88);

    border-color:
        rgba(255,255,255,.07);

    box-shadow:
        0 25px 60px
        rgba(0,0,0,.28);
}


[data-theme="dark"] .auth-header h1,
[data-theme="dark"] .form-group label {

    color: #f8fafc;
}


[data-theme="dark"] .input-box {

    background:
        rgba(15,23,42,.85);

    border-color:
        rgba(255,255,255,.08);
}


[data-theme="dark"] .input-box input {

    color: #ffffff;
}


[data-theme="dark"] .auth-back {

    border-color:
        rgba(255,255,255,.07);
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 900px) {

    .footer-container {

        grid-template-columns:
            repeat(2,minmax(0,1fr));

        gap: 42px 35px;
    }


    .footer-brand {

        grid-column:
            1 / -1;
    }
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 600px) {

    .auth-page {

        padding:
            35px 14px 55px;
    }


    .auth-card {

        padding:
            28px 20px;

        border-radius:
            22px;
    }


    .auth-header h1 {

        font-size:
            29px;
    }


    .auth-header p {

        font-size:
            13px;
    }


    .auth-icon {

        width: 62px;
        height: 62px;

        font-size: 23px;
    }


    .auth-options {

        flex-direction:
            column;

        gap: 9px;
    }


    .auth-options > span {

        display: none;
    }


    .footer-container {

        width:
            calc(100% - 28px);

        padding:
            45px 0 40px;

        grid-template-columns:
            1fr;

        gap: 34px;
    }


    .footer-brand {

        grid-column:
            auto;
    }


    .footer-logo {

        font-size:
            27px;
    }


    .footer-description {

        max-width:
            none;

        font-size:
            13px;
    }


    .footer-bottom-inner {

        width:
            calc(100% - 28px);

        padding:
            18px 0;

        flex-direction:
            column;

        text-align:
            center;

        gap:
            10px;
    }
}


/* ==========================================================
   PETIT MOBILE
   ========================================================== */

@media (max-width: 380px) {

    .auth-card {

        padding:
            25px 16px;
    }


    .social-icons a {

        width: 40px;
        height: 40px;
    }
}


/* ==========================================================
   FIN
   ========================================================== */