/* ============================================================
   ESPACE LICENCIÉS
============================================================ */

.aa-protected-page {
    min-height: 70vh;

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

    padding: 120px 20px 100px;

    background:
        radial-gradient(
            circle at 75% 15%,
            rgba(245, 196, 0, 0.10),
            transparent 35%
        ),
        #090909;
}


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

.aa-protected-card {
    width: min(620px, 100%);

    padding: 50px;

    background: #111111;

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

    text-align: center;
}


/* ============================================================
   PETIT TITRE
============================================================ */

.aa-protected-eyebrow {
    display: block;

    margin-bottom: 14px;

    color: #f5c400;

    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.18em;

    text-transform: uppercase;
}


/* ============================================================
   TITRE
============================================================ */

.aa-protected-card h1 {
    margin: 0;

    color: #ffffff !important;

    font-size: clamp(38px, 6vw, 56px);
    font-weight: 900;

    line-height: 1;

    letter-spacing: -0.04em;
}

.aa-protected-card h1 strong {
    color: #f5c400;
}


/* ============================================================
   INTRO
============================================================ */

.aa-protected-intro {
    max-width: 470px;

    margin: 22px auto 34px;

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

    font-size: 15px;
    line-height: 1.65;
}


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

.aa-password-form {
    text-align: left;
}

.aa-password-form label {
    display: block;

    margin-bottom: 8px;

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

    font-size: 12px;
    font-weight: 700;
}


/* ============================================================
   LIGNE CHAMP + BOUTON
============================================================ */

.aa-password-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;

    gap: 10px;
}


/* ============================================================
   CHAMP MOT DE PASSE
============================================================ */

.aa-password-row input {
    width: 100%;
    min-width: 0;

    height: 48px;

    margin: 0;
    padding: 0 16px;

    box-sizing: border-box;

    background: #090909;
    color: #ffffff;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;

    outline: none;
    box-shadow: none;

    font-family: inherit;
    font-size: 14px;
    line-height: 1;

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

.aa-password-row input::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.aa-password-row input:focus {
    border-color: #f5c400;
    background: #0d0d0d;
}


/* ============================================================
   BOUTON ACCÉDER
   CENTRAGE FORCÉ
============================================================ */

.aa-password-row button {
    position: relative !important;

    display: block !important;

    width: 124px !important;
    min-width: 124px !important;

    height: 48px !important;
    min-height: 48px !important;

    margin: 0 !important;
    padding: 0 !important;

    box-sizing: border-box !important;

    background: #f5c400 !important;
    color: #090909 !important;

    border: 0 !important;
    border-radius: 8px !important;

    outline: none !important;
    box-shadow: none !important;

    cursor: pointer;

    appearance: none !important;
    -webkit-appearance: none !important;

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


/* ============================================================
   TEXTE DU BOUTON
   POSITIONNÉ EXACTEMENT AU CENTRE
============================================================ */

.aa-password-row button span {
    display: block !important;

    position: absolute !important;

    top: 50% !important;
    left: 50% !important;

    width: max-content !important;

    margin: 0 !important;
    padding: 0 !important;

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

    color: #090909 !important;

    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1 !important;

    text-align: center !important;
    white-space: nowrap !important;

    pointer-events: none;
}


/* ============================================================
   ON SUPPRIME TOUTE FLÈCHE / PSEUDO ÉLÉMENT
============================================================ */

.aa-password-row button::before,
.aa-password-row button::after {
    content: none !important;
    display: none !important;
}


/* ============================================================
   HOVER / FOCUS
============================================================ */

.aa-password-row button:hover,
.aa-password-row button:focus {
    background: #ffd51a !important;
    color: #090909 !important;

    transform: translateY(-1px);
}

.aa-password-row button:active {
    transform: translateY(0);
}


/* ============================================================
   NOTE
============================================================ */

.aa-protected-note {
    margin-top: 22px;

    padding-top: 18px;

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

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

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

    text-align: center;
}


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

@media (max-width: 760px) {

    .aa-protected-page {
        padding: 100px 18px 80px;
    }

    .aa-protected-card {
        padding: 42px 34px;
    }

}


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

@media (max-width: 600px) {

    .aa-protected-page {
        min-height: auto;

        padding: 80px 16px 60px;
    }

    .aa-protected-card {
        width: 100%;

        padding: 32px 22px;

        border-radius: 14px;
    }

    .aa-protected-card h1 {
        font-size: 40px;
    }

    .aa-protected-intro {
        margin-bottom: 28px;

        font-size: 14px;
    }

    .aa-password-row {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    .aa-password-row input {
        width: 100%;

        height: 48px;
    }

    .aa-password-row button {
        width: 100% !important;
        min-width: 0 !important;

        height: 48px !important;
        min-height: 48px !important;
    }

    .aa-protected-note {
        margin-top: 20px;
    }

}


/* ============================================================
   PETITS MOBILES
============================================================ */

@media (max-width: 380px) {

    .aa-protected-card {
        padding: 28px 18px;
    }

    .aa-protected-card h1 {
        font-size: 36px;
    }

}
/* ============================================================
   AFFICHER / MASQUER LE MOT DE PASSE
============================================================ */

.aa-password-field {
    position: relative;
    flex: 1;
    min-width: 0;
}

.aa-password-field input {
    width: 100%;
    padding-right: 58px !important;
    box-sizing: border-box;
}


/* Bouton œil */

.aa-password-field .aa-password-toggle {
    position: absolute !important;

    top: 0 !important;
    right: 10px !important;
    bottom: 0 !important;

    width: 44px !important;
    height: 100% !important;
    min-width: 44px !important;
    min-height: 0 !important;

    padding: 0 !important;
    margin: 0 !important;

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

    transform: none !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;

    color: #8d8d8d !important;

    box-shadow: none !important;

    cursor: pointer;

    z-index: 5;

    transition: color .2s ease;
}


/* Aucun rond au hover */

.aa-password-field .aa-password-toggle:hover,
.aa-password-field .aa-password-toggle:focus,
.aa-password-field .aa-password-toggle:active {
    color: #f3c400 !important;

    background: transparent !important;

    border: 0 !important;

    box-shadow: none !important;

    outline: none !important;

    transform: none !important;
}


/* Icône */

.aa-password-toggle svg {
    width: 22px !important;
    height: 22px !important;

    display: block;

    margin: 0 !important;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.8;

    stroke-linecap: round;
    stroke-linejoin: round;

    pointer-events: none;
}


/* Œil fermé */

.aa-password-toggle .aa-eye-closed {
    display: none;
}


/* Mot de passe visible */

.aa-password-toggle.is-visible .aa-eye-open {
    display: none;
}

.aa-password-toggle.is-visible .aa-eye-closed {
    display: block;
}