/* =========================================================
   ALEYA ID — PAGE COMPTE
========================================================= */

/* ---------- VARIABLES ---------- */

:root {
    --aleya-background: #0c0c0c;
    --aleya-card: rgba(20, 20, 24, 0.72);
    --aleya-card-light: rgba(255, 255, 255, 0.07);
    --aleya-border: rgba(255, 255, 255, 0.14);

    --aleya-white: #ffffff;
    --aleya-text: rgba(255, 255, 255, 0.82);
    --aleya-muted: rgba(255, 255, 255, 0.52);

    --aleya-purple: #9d63ff;
    --aleya-purple-light: #d2b6ff;

    --aleya-error: #ff9898;
    --aleya-success: #a6f1c6;
}

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

body.page-aleya-id {
    margin: 0;
    min-height: 100vh;

    background-color: var(--aleya-background);
    color: var(--aleya-white);

    --font-main: "Montserrat", sans-serif;
}

body.page-aleya-id *,
body.page-aleya-id *::before,
body.page-aleya-id *::after {
    box-sizing: border-box;
}

.aleya-id-page {
    position: relative;
    isolation: isolate;

    width: 100%;
    min-height: 100vh;

    padding: 140px 40px 100px;
    overflow: hidden;
}

/* ---------- FOND ---------- */

.aleya-id-background {
    position: fixed;
    inset: 0;
    z-index: -2;

    background-color: #0c0c0c;
    background-image: url("../../../media/aleya_louvre.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.aleya-id-background::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            110deg,
            rgba(0, 0, 0, 0.94) 0%,
            rgba(8, 4, 14, 0.86) 48%,
            rgba(20, 7, 37, 0.74) 100%
        );

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* ---------- MISE EN PAGE ---------- */

.aleya-id-layout {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;

    display: grid;
    grid-template-columns:
        minmax(0, 0.9fr)
        minmax(440px, 1.1fr);

    align-items: center;
    gap: 75px;
}

/* =========================================================
   INTRODUCTION GAUCHE
========================================================= */

.aleya-id-introduction {
    min-width: 0;
    padding: 30px 0;
}

.aleya-id-logo {
    display: block;

    width: 58px;
    height: 58px;
    margin-bottom: 42px;

    object-fit: contain;
}

.aleya-id-label {
    margin: 0 0 14px;

    color: var(--aleya-purple-light);

    font-size: 15px;
    font-weight: 650;
    line-height: 1.2;
}

.aleya-id-introduction h1 {
    max-width: 580px;
    margin: 0;

    color: var(--aleya-white);

    font-size: clamp(50px, 5.5vw, 78px);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -4px;
}

.aleya-id-intro-text {
    max-width: 520px;
    margin: 30px 0 0;

    color: var(--aleya-text);

    font-size: 18px;
    line-height: 1.55;
}

/* =========================================================
   CARTE DU FORMULAIRE
========================================================= */

.aleya-id-card {
    width: 100%;
    min-width: 0;
    padding: 44px;

    background: var(--aleya-card);
    border: 1px solid var(--aleya-border);
    border-radius: 34px;

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

    box-shadow:
        0 35px 90px rgba(0, 0, 0, 0.48),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ---------- ONGLETS ---------- */

.aleya-id-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;

    width: 100%;
    margin-bottom: 34px;
    padding: 5px;

    background: rgba(255, 255, 255, 0.07);
    border-radius: 999px;
}

.aleya-id-tabs a {
    min-width: 0;
    min-height: 46px;
    padding: 0 16px;

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

    color: rgba(255, 255, 255, 0.55);
    border-radius: 999px;

    text-align: center;
    text-decoration: none;

    font-size: 13px;
    font-weight: 650;

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}

.aleya-id-tabs a.active {
    background: var(--aleya-white);
    color: #111111;
}

.aleya-id-tabs a:not(.active):hover {
    color: var(--aleya-white);
    background: rgba(255, 255, 255, 0.06);
}

/* ---------- EN-TÊTE DU FORMULAIRE ---------- */

.aleya-id-card-heading {
    margin-bottom: 32px;
}

.aleya-id-card-heading h2,
.aleya-account-dashboard h2 {
    margin: 0;

    color: var(--aleya-white);

    font-size: clamp(30px, 4vw, 38px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -1.5px;
}

.aleya-id-card-heading > p:last-child {
    margin: 12px 0 0;

    color: var(--aleya-muted);

    font-size: 14px;
    line-height: 1.5;
}

/* =========================================================
   FORMULAIRE
========================================================= */

.aleya-id-form {
    width: 100%;

    display: flex;
    flex-direction: column;
    gap: 22px;
}

.aleya-id-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.aleya-id-field {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 9px;
}

.aleya-id-field label {
    color: rgba(255, 255, 255, 0.84);

    font-size: 13px;
    font-weight: 650;
    line-height: 1.3;
}

/* ---------- CHAMPS ---------- */

.aleya-id-field input {
    width: 100%;
    min-width: 0;
    min-height: 56px;
    padding: 0 17px;

    appearance: none;
    -webkit-appearance: none;

    background: rgba(255, 255, 255, 0.075);
    color: var(--aleya-white);

    border: 1px solid var(--aleya-border);
    border-radius: 15px;
    outline: none;

    font: inherit;
    font-size: 15px;

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

.aleya-id-field input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.aleya-id-field input:hover {
    background: rgba(255, 255, 255, 0.095);
    border-color: rgba(255, 255, 255, 0.22);
}

.aleya-id-field input:focus {
    background: rgba(255, 255, 255, 0.11);
    border-color: var(--aleya-purple);

    box-shadow:
        0 0 0 4px rgba(157, 99, 255, 0.15);
}

/* Prénom visuellement formaté */

#first_name {
    text-transform: capitalize;
}

/* Nom visuellement en majuscules */

#last_name {
    text-transform: uppercase;
}

/* ---------- AUTOCOMPLÉTION CHROME ---------- */

.aleya-id-field input:-webkit-autofill,
.aleya-id-field input:-webkit-autofill:hover,
.aleya-id-field input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff;

    box-shadow:
        0 0 0 1000px #252329 inset;

    border-color: rgba(255, 255, 255, 0.2);

    transition: background-color 9999s ease-in-out 0s;
}

/* ---------- MOT DE PASSE ---------- */

.password-container {
    position: relative;
    width: 100%;
}

.password-container input {
    padding-right: 92px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 11px;

    transform: translateY(-50%);

    padding: 8px 7px;

    background: transparent;
    color: var(--aleya-purple-light);

    border: 0;
    outline: none;

    font: inherit;
    font-size: 12px;
    font-weight: 650;

    cursor: pointer;
}

.password-toggle:hover {
    color: var(--aleya-white);
}

/* ---------- INFORMATIONS ET ERREURS ---------- */

.field-information {
    margin: 0;

    color: rgba(255, 255, 255, 0.44);

    font-size: 11px;
    line-height: 1.45;
}

.aleya-id-field small,
.checkbox-error {
    display: block;

    color: var(--aleya-error);

    font-size: 11px;
    line-height: 1.4;
}

/* ---------- CASE CONDITIONS ---------- */

.aleya-id-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    color: rgba(255, 255, 255, 0.6);

    font-size: 12px;
    line-height: 1.5;

    cursor: pointer;
}

.aleya-id-checkbox input {
    width: 17px;
    height: 17px;
    margin: 2px 0 0;

    flex: 0 0 17px;

    accent-color: var(--aleya-purple);
    cursor: pointer;
}

.aleya-id-checkbox span {
    min-width: 0;
}

.aleya-id-checkbox a {
    color: var(--aleya-purple-light);
    text-decoration: none;
}

.aleya-id-checkbox a:hover {
    text-decoration: underline;
}

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

.aleya-id-submit {
    width: 100%;
    min-height: 56px;
    margin-top: 4px;
    padding: 0 25px;

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

    appearance: none;
    -webkit-appearance: none;

    background: var(--aleya-white);
    color: #111111;

    border: 0;
    border-radius: 999px;

    text-decoration: none;

    font: inherit;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.aleya-id-submit:hover {
    background: #eee8f7;

    transform: translateY(-2px);

    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.28);
}

.aleya-id-submit:active {
    transform: translateY(0);
}

/* ---------- MESSAGE D’ERREUR GÉNÉRAL ---------- */

.aleya-id-alert {
    width: 100%;
    margin-bottom: 25px;
    padding: 14px 16px;

    background: rgba(255, 70, 70, 0.13);
    color: #ffb1b1;

    border: 1px solid rgba(255, 100, 100, 0.28);
    border-radius: 14px;

    font-size: 13px;
    line-height: 1.45;
}

/* =========================================================
   COMPTE CONNECTÉ
========================================================= */

.aleya-account-dashboard {
    width: 100%;
}

.aleya-account-dashboard h2 {
    margin-bottom: 30px;
}

.aleya-account-avatar {
    width: 82px;
    height: 82px;
    margin-bottom: 30px;

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

    background:
        linear-gradient(
            135deg,
            #b57cff,
            #6c2bd9
        );

    color: var(--aleya-white);

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;

    font-size: 32px;
    font-weight: 700;

    box-shadow:
        0 18px 40px rgba(92, 38, 180, 0.36);
}

.aleya-account-information {
    margin-bottom: 30px;

    display: flex;
    flex-direction: column;

    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.aleya-account-information > div {
    padding: 19px 0;

    display: flex;
    flex-direction: column;
    gap: 6px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.aleya-account-information span {
    color: rgba(255, 255, 255, 0.43);

    font-size: 12px;
}

.aleya-account-information strong {
    color: var(--aleya-white);

    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;

    overflow-wrap: anywhere;
}

/* ---------- DÉCONNEXION ---------- */

.aleya-id-secondary-button {
    width: 100%;
    min-height: 54px;
    padding: 0 25px;

    background: rgba(255, 255, 255, 0.08);
    color: var(--aleya-white);

    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;

    font: inherit;
    font-size: 14px;
    font-weight: 650;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.aleya-id-secondary-button:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

/* ---------- MESSAGE DE SUCCÈS ---------- */

.aleya-id-success-message {
    width: 100%;
    margin-bottom: 25px;
    padding: 14px 16px;

    background: rgba(68, 210, 129, 0.12);
    color: var(--aleya-success);

    border: 1px solid rgba(90, 230, 150, 0.25);
    border-radius: 14px;

    font-size: 13px;
    line-height: 1.45;
}

/* =========================================================
   RESPONSIVE TABLETTE
========================================================= */

@media (max-width: 1000px) {
    .aleya-id-page {
        padding:
            125px
            24px
            80px;
    }

    .aleya-id-layout {
        max-width: 650px;

        grid-template-columns: 1fr;
        gap: 40px;
    }

    .aleya-id-introduction {
        padding-bottom: 0;
        text-align: center;
    }

    .aleya-id-logo {
        margin-right: auto;
        margin-left: auto;
    }

    .aleya-id-introduction h1,
    .aleya-id-intro-text {
        margin-right: auto;
        margin-left: auto;
    }
}

/* =========================================================
   RESPONSIVE TÉLÉPHONE
========================================================= */

@media (max-width: 600px) {
    .aleya-id-page {
        padding:
            105px
            14px
            50px;
    }

    .aleya-id-layout {
        gap: 30px;
    }

    .aleya-id-logo {
        width: 48px;
        height: 48px;
        margin-bottom: 28px;
    }

    .aleya-id-introduction h1 {
        font-size: 46px;
        letter-spacing: -2.5px;
    }

    .aleya-id-intro-text {
        margin-top: 24px;
        font-size: 16px;
    }

    .aleya-id-card {
        padding: 28px 20px;
        border-radius: 25px;
    }

    .aleya-id-tabs {
        margin-bottom: 28px;
    }

    .aleya-id-tabs a {
        min-height: 44px;
        padding: 0 9px;
        font-size: 12px;
    }

    .aleya-id-row {
        grid-template-columns: 1fr;
    }

    .aleya-id-card-heading h2,
    .aleya-account-dashboard h2 {
        font-size: 30px;
    }

    .aleya-account-avatar {
        width: 72px;
        height: 72px;

        font-size: 28px;
    }
}

/* =========================================================
   TRÈS PETITS ÉCRANS
========================================================= */

@media (max-width: 380px) {
    .aleya-id-page {
        padding-right: 10px;
        padding-left: 10px;
    }

    .aleya-id-card {
        padding: 24px 16px;
    }

    .aleya-id-introduction h1 {
        font-size: 40px;
    }

    .aleya-id-tabs a {
        font-size: 11px;
    }
}
footer {
    position: relative;
    z-index: 10;

    width: 100%;
    margin-top: 0;

    background-color: #222222;
    color: #ffffff;
}

.aleya-id-background {
    z-index: -1;
    pointer-events: none;
}