/* =========================================================
   CHROME — AUTH
   Connexion + Création de compte
   ========================================================= */


/* ---------------------------------------------------------
   PAGE
   --------------------------------------------------------- */

.auth-page {

    min-height: 100svh;

    box-sizing: border-box;

    display: flex;

    align-items: center;
    justify-content: center;

    padding:
        40px
        20px
        80px;

    position: relative;

    overflow: hidden;
}


/* Halo */

.auth-page::before {

    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%);

    background:
        radial-gradient(
            circle,
            rgba(220,230,240,.075),
            transparent 68%
        );

    filter: blur(35px);

    pointer-events: none;
}


/* Reflet */

.auth-page::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            125deg,
            transparent 30%,
            rgba(255,255,255,.025),
            transparent 65%
        );

    pointer-events: none;
}


/* ---------------------------------------------------------
   CARD
   --------------------------------------------------------- */

.auth-card {

    width: min(100%, 400px);

    box-sizing: border-box;

    padding: 30px;

    position: relative;

    z-index: 1;

    border:
        1px solid
        rgba(255,255,255,.10);

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.065),
            rgba(255,255,255,.018)
        );

    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);

    box-shadow:
        0 30px 80px
        rgba(0,0,0,.48),

        inset 0 1px 0
        rgba(255,255,255,.08);
}


/* Ligne chrome supérieure */

.auth-card::before {

    content: "";

    position: absolute;

    top: 0;

    left: 12%;
    right: 12%;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.55),
            transparent
        );
}


/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */

.auth-header {

    margin-bottom: 27px;
}


.auth-label {

    display: block;

    margin-bottom: 13px;

    color: #858e96;

    font-size: 9px;

    font-weight: 600;

    letter-spacing: .27em;

    text-transform: uppercase;
}


.auth-header h1 {

    margin: 0;

    font-size: 30px;

    line-height: 1.05;

    font-weight: 800;

    letter-spacing: -.055em;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #aeb6bc 35%,
            #ffffff 50%,
            #626a71 73%,
            #f4f6f7 100%
        );

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}


.auth-header p {

    margin:
        12px 0 0;

    color: #858e97;

    font-size: 12px;

    line-height: 1.55;
}


/* ---------------------------------------------------------
   ERREUR
   --------------------------------------------------------- */

.auth-error {

    box-sizing: border-box;

    width: 100%;

    margin-bottom: 18px;

    padding:
        12px
        14px;

    border:
        1px solid
        rgba(255,100,100,.20);

    border-radius: 9px;

    background:
        rgba(255,70,70,.055);

    color: #dfa1a1;

    font-size: 11px;

    line-height: 1.5;
}


/* ---------------------------------------------------------
   FORMULAIRE
   --------------------------------------------------------- */

.auth-form {

    display: flex;

    flex-direction: column;

    width: 100%;
}


/* ---------------------------------------------------------
   GROUPE INPUT
   --------------------------------------------------------- */

.input-group {

    display: flex;

    flex-direction: column;

    gap: 8px;

    margin-bottom: 19px;
}


.input-group label {

    color: #929ba3;

    font-size: 9px;

    font-weight: 600;

    letter-spacing: .13em;

    text-transform: uppercase;
}


/* ---------------------------------------------------------
   INPUTS
   --------------------------------------------------------- */

.input-group input {

    width: 100%;

    box-sizing: border-box;

    padding:
        13px
        14px;

    border:
        1px solid
        rgba(255,255,255,.09);

    border-radius: 9px;

    outline: none;

    background:
        rgba(0,0,0,.25);

    color: #f2f4f6;

    font-family: inherit;

    font-size: 14px;

    transition:
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}


.input-group input::placeholder {

    color: #4e575f;
}


.input-group input:hover {

    border-color:
        rgba(255,255,255,.14);
}


.input-group input:focus {

    border-color:
        rgba(255,255,255,.30);

    background:
        rgba(255,255,255,.035);

    box-shadow:
        0 0 0 3px
        rgba(255,255,255,.035);
}


/* ---------------------------------------------------------
   BOUTON
   --------------------------------------------------------- */

.auth-button {

    width: 100%;

    box-sizing: border-box;

    padding: 14px;

    margin-top: 3px;

    border:
        1px solid
        rgba(255,255,255,.75);

    border-radius: 9px;

    background:
        linear-gradient(
            180deg,
            #ffffff,
            #c4cbd0
        );

    color: #07090b;

    font-family: inherit;

    font-size: 11px;

    font-weight: 750;

    letter-spacing: .05em;

    cursor: pointer;

    box-shadow:
        0 8px 28px
        rgba(255,255,255,.06);

    transition:
        transform .18s ease,
        box-shadow .18s ease;
}


.auth-button:hover {

    transform:
        translateY(-1px);

    box-shadow:
        0 13px 38px
        rgba(255,255,255,.13);
}


.auth-button:active {

    transform:
        translateY(0);
}


/* ---------------------------------------------------------
   FOOTER DE LA CARD
   --------------------------------------------------------- */

.auth-footer {

    margin-top: 23px;

    padding-top: 19px;

    border-top:
        1px solid
        rgba(255,255,255,.06);

    text-align: center;

    color: #606970;

    font-size: 10px;

    line-height: 1.5;
}


.auth-footer a {

    color: #cbd1d5;

    font-weight: 600;

    text-decoration: none;

    transition:
        color .18s ease;
}


.auth-footer a:hover {

    color: #ffffff;
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 600px) {

    .auth-page {

        align-items: flex-start;

        padding:
            16vh
            18px
            70px;
    }


    .auth-card {

        padding: 23px;

        border-radius: 16px;
    }


    .auth-header h1 {

        font-size: 27px;
    }


    .auth-header {

        margin-bottom: 24px;
    }


    .input-group {

        margin-bottom: 17px;
    }

}


/* ---------------------------------------------------------
   PETITS ÉCRANS
   --------------------------------------------------------- */

@media (max-height: 650px) and (max-width: 600px) {

    .auth-page {

        padding-top: 8vh;
    }


    .auth-card {

        padding: 20px;
    }


    .auth-header {

        margin-bottom: 20px;
    }

}