/* =========================================================
   KUBIK COMMUNITY
   POPUP COMPTE
   ========================================================= */


/*
   TRÈS IMPORTANT

   Cette règle doit gagner contre le
   display:grid du popup.

   Quand "hidden" est présent,
   le popup n'existe visuellement plus.
*/

.account-modal[hidden] {

    display: none !important;

}


.account-view[hidden] {

    display: none !important;

}


body.account-open {

    overflow: hidden;

}


/* =========================================================
   CONTENEUR PLEIN ÉCRAN
   ========================================================= */

.account-modal {

    position: fixed !important;

    top: 0 !important;
    left: 0 !important;

    width: 100vw !important;
    height: 100vh !important;

    z-index: 99999 !important;

    display: grid;

    place-items: center;

    padding: 30px;

}


/* =========================================================
   FOND DERRIÈRE
   ========================================================= */

.account-backdrop {

    position: absolute;

    inset: 0;

    background:
        rgba(2, 6, 13, 0.78);

    backdrop-filter:
        blur(9px);

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

}


/* =========================================================
   CARTE CENTRALE
   ========================================================= */

.account-card {

    position: relative;

    z-index: 2;

    width: 500px;

    max-width:
        calc(100vw - 40px);

    max-height:
        calc(100vh - 60px);

    overflow-y: auto;

    padding:
        42px
        42px
        35px;

    color: #ffffff;

    border:
        1px solid
        rgba(255, 255, 255, 0.10);

    border-radius:
        22px;

    background:
        linear-gradient(
            145deg,
            #192435 0%,
            #101a29 48%,
            #09121e 100%
        );

    box-shadow:
        0
        35px
        100px
        rgba(0, 0, 0, 0.72),

        0
        0
        80px
        rgba(255, 174, 0, 0.08),

        inset
        0
        1px
        0
        rgba(255, 255, 255, 0.05);

    animation:
        kubikAccountOpen
        0.20s
        ease-out;

}


@keyframes kubikAccountOpen {

    from {

        opacity: 0;

        transform:
            translateY(15px)
            scale(0.96);

    }


    to {

        opacity: 1;

        transform:
            translateY(0)
            scale(1);

    }

}


/* =========================================================
   LIGNE OR
   ========================================================= */

.account-card::before {

    content: "";

    position: absolute;

    top: 0;
    left: 50%;

    width: 64%;
    height: 3px;

    transform:
        translateX(-50%);

    border-radius:
        0
        0
        10px
        10px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #ffc800,
            #ff9d00,
            transparent
        );

}


/* =========================================================
   CROIX FERMER
   ========================================================= */

.account-close {

    position: absolute;

    top: 16px;
    right: 16px;

    z-index: 10;

    width: 40px;
    height: 40px;

    display: grid;

    place-items: center;

    padding: 0;

    border: 0;

    border-radius: 10px;

    background:
        rgba(255, 255, 255, 0.06);

    color:
        #aab4c3;

    font-size: 18px;

    cursor: pointer;

    transition:
        background 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease;

}


.account-close:hover {

    color: #ffffff;

    background:
        rgba(255, 255, 255, 0.11);

    transform:
        scale(0.95);

}


.account-close:active {

    transform:
        scale(0.90);

}


/* =========================================================
   LOGO
   ========================================================= */

.account-logo-box {

    width: 76px;
    height: 76px;

    display: grid;

    place-items: center;

    margin:
        0
        auto
        20px;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            rgba(49, 210, 117, 0.12),
            rgba(35, 168, 255, 0.16),
            rgba(89, 69, 245, 0.18)
        );

    border:
        1px solid
        rgba(255, 255, 255, 0.08);

}


.account-logo {

    width: 60px;
    height: 60px;

    display: block;

    object-fit: contain;

}


/* =========================================================
   AUTRES ICÔNES
   ========================================================= */

.account-small-icon {

    width: 70px;
    height: 70px;

    display: grid;

    place-items: center;

    margin:
        0
        auto
        20px;

    border-radius: 50%;

    color: #ffb300;

    background:
        rgba(255, 179, 0, 0.10);

    font-size: 28px;

}


.account-small-icon.blue {

    color: #43b5ff;

    background:
        rgba(67, 181, 255, 0.10);

}


.account-small-icon.green {

    color: #20d779;

    background:
        rgba(32, 215, 121, 0.10);

}


/* =========================================================
   TEXTE
   ========================================================= */

.account-eyebrow {

    margin:
        0
        0
        8px;

    color: #ffb300;

    text-align: center;

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 0.14em;

}


.account-title {

    margin:
        0
        0
        10px;

    color: #ffffff;

    text-align: center;

    font-family:
        'Outfit',
        sans-serif;

    font-size: 32px;

    font-weight: 800;

    line-height: 1.1;

}


.account-subtitle {

    max-width: 400px;

    margin:
        0
        auto
        28px;

    color: #9ba7b7;

    text-align: center;

    font-size: 15px;

    line-height: 1.55;

}


.account-subtitle strong {

    color: #ffffff;

}


/* =========================================================
   CHAMPS
   ========================================================= */

.account-field {

    width: 100%;

    margin-bottom: 17px;

}


.account-field label {

    display: block;

    margin-bottom: 7px;

    color: #d4dae4;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 0.09em;

}


.account-input {

    width: 100%;
    height: 54px;

    display: flex;

    align-items: center;

    gap: 12px;

    padding:
        0
        15px;

    border:
        1px solid
        rgba(255, 255, 255, 0.09);

    border-radius: 10px;

    background:
        rgba(255, 255, 255, 0.04);

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;

}


.account-input:focus-within {

    border-color:
        rgba(255, 184, 35, 0.70);

    background:
        rgba(255, 255, 255, 0.055);

    box-shadow:
        0
        0
        0
        3px
        rgba(255, 184, 35, 0.08);

}


.account-input i {

    width: 18px;

    flex-shrink: 0;

    color: #7c899b;

    text-align: center;

}


.account-input input {

    width: 100%;

    min-width: 0;

    padding: 0;

    border: 0;

    outline: 0;

    background: transparent;

    color: #ffffff;

    font-family:
        'Outfit',
        sans-serif;

    font-size: 15px;

}


.account-input input::placeholder {

    color: #687589;

}


/* =========================================================
   PRÉNOM + NOM
   ========================================================= */

.account-row {

    display: flex;

    gap: 14px;

}


.account-row .account-field {

    flex: 1;

}


/* =========================================================
   BOUTON PRINCIPAL
   ========================================================= */

.account-main-button {

    width: 100%;
    height: 54px;

    display: flex;

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

    margin-top: 5px;

    padding: 0 20px;

    border: 0;

    border-radius: 9px;

    background:
        linear-gradient(
            90deg,
            #ffc800 0%,
            #ffb300 48%,
            #ff9500 100%
        );

    box-shadow:
        0
        4px
        0
        #c66e00,

        0
        10px
        25px
        rgba(0, 0, 0, 0.25);

    color: #211606;

    font-family:
        'Outfit',
        sans-serif;

    font-size: 14px;

    font-weight: 800;

    letter-spacing: 0.07em;

    cursor: pointer;

    transition:
        transform 0.12s ease;

}


.account-main-button:hover {

    transform:
        scale(0.985);

}


.account-main-button:active {

    transform:
        scale(0.97);

}


/* =========================================================
   BAS DU FORMULAIRE
   ========================================================= */

.account-bottom {

    display: flex;

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

    gap: 6px;

    margin-top: 26px;

    color: #8995a6;

    font-size: 14px;

}


.account-text-button {

    padding: 0;

    border: 0;

    background: none;

    color: #ffc14b;

    font-family:
        'Outfit',
        sans-serif;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

}


.account-text-button:hover {

    text-decoration: underline;

}


/* =========================================================
   CODE
   ========================================================= */

.verification-code {

    display: grid;

    grid-template-columns:
        repeat(6, 1fr);

    gap: 9px;

    margin-bottom: 18px;

}


.verification-code input {

    width: 100%;

    aspect-ratio:
        1 / 1.05;

    min-width: 0;

    padding: 0;

    border:
        1px solid
        rgba(255, 255, 255, 0.10);

    border-radius: 9px;

    outline: none;

    background:
        rgba(255, 255, 255, 0.045);

    color: #ffffff;

    text-align: center;

    font-size: 24px;

    font-weight: 800;

}


.verification-code input:focus {

    border-color:
        #ffb300;

    box-shadow:
        0
        0
        0
        3px
        rgba(255, 179, 0, 0.08);

}


/* =========================================================
   ERREURS
   ========================================================= */

.account-message {

    min-height: 20px;

    margin:
        -2px
        0
        10px;

    font-size: 13px;

}


.account-message.error {

    color: #ff7474;

}


.account-message.success {

    color: #20d779;

}


/* =========================================================
   PROGRESSION
   ========================================================= */

.account-progress {

    display: grid;

    gap: 10px;

    margin-bottom: 24px;

}


.account-progress-item {

    min-height: 50px;

    display: flex;

    align-items: center;

    gap: 12px;

    padding:
        0
        15px;

    border:
        1px solid
        rgba(255, 255, 255, 0.06);

    border-radius: 9px;

    background:
        rgba(255, 255, 255, 0.03);

    color: #8d99aa;

}


.account-progress-item i {

    width: 22px;

    text-align: center;

}


.account-progress-item.complete {

    color: #ffffff;

    border-color:
        rgba(32, 215, 121, 0.17);

    background:
        rgba(32, 215, 121, 0.055);

}


.account-progress-item.complete i {

    color: #20d779;

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .account-modal {

        padding: 12px;

    }


    .account-card {

        max-width:
            calc(100vw - 24px);

        max-height:
            calc(100vh - 24px);

        padding:
            38px
            20px
            28px;

        border-radius:
            17px;

    }


    .account-title {

        font-size: 28px;

    }


    .account-row {

        display: block;

    }


    .verification-code {

        gap: 5px;

    }


    .verification-code input {

        font-size: 19px;

    }


    .account-bottom {

        flex-wrap: wrap;

    }

}
