/* =========================================================
   PAGE AUTHENTIFICATION PUBLIQUE
   ========================================================= */

.dt-auth {
    width: 100%;
    padding: 72px 60px 80px;
    background: #eee;
    box-sizing: border-box;
}

.dt-auth__container {
    display: flex;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    justify-content: center;
    align-items: flex-start;
    gap: 60px;
    box-sizing: border-box;
}

.dt-auth__container--reversed .dt-auth__panel--login {
    order: 1;
}

.dt-auth__container--reversed .dt-auth__panel--register {
    order: 2;
}

/* =========================================================
   PANNEAUX
   ========================================================= */

.dt-auth__panel {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    padding: 32px;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    align-self: stretch;
    border-radius: 32px;
    box-sizing: border-box;
}

.dt-auth__panel--register {
    background: #fff;
}

.dt-auth__panel--login {
    height: 500px;
    background: #0e0e0e;
}

.dt-auth__title {
    width: 100%;
    margin: 0;
    color: #0e0e0e;
    text-align: center;
    font-family: "Mulish", sans-serif;
    font-size: 27px;
    font-style: normal;
    font-weight: 800;
    line-height: 28px;
}

.dt-auth__title--yellow {
    color: #e3ba67;
}

/* =========================================================
   FORMULAIRES
   ========================================================= */

.dt-auth__form {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
}

.dt-auth__fields {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.dt-auth__fields--login {
    gap: 24px;
}

.dt-auth__field {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.dt-auth__label {
    width: 100%;
    color: #fff;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: -0.128px;
}

.dt-auth__label--sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    white-space: nowrap;
    border: 0;
    clip: rect(0, 0, 0, 0);
}

.dt-auth__input {
    display: block;
    width: 100%;
    min-height: 64px;
    padding: 20px 32px;
    border: 1px solid transparent;
    border-radius: 14px;
    outline: none;
    background: #eee;
    color: #000;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    box-sizing: border-box;
    transition:
        border-color 180ms ease,
        background-color 180ms ease,
        box-shadow 180ms ease;
}

.dt-auth__input::placeholder {
    color: #111;
    opacity: 1;
}

.dt-auth__input:hover {
    background: #e7e7e7;
}

.dt-auth__input:focus {
    border-color: #e3ba67;
    background: #fff;
    box-shadow: 0 0 0 3px rgb(227 186 103 / 22%);
}

.dt-auth__input--error {
    border-color: #b3261e;
}

.dt-auth__error {
    margin: -8px 0 0;
    color: #b3261e;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    line-height: 20px;
}

.dt-auth__panel--login .dt-auth__error {
    color: #ffaaa5;
}

/* =========================================================
   MOT DE PASSE OUBLIÉ
   ========================================================= */

.dt-auth__forgot-wrapper {
    width: 100%;
    margin-top: -4px;
    text-align: right;
}

.dt-auth__forgot {
    color: #e3ba67;
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: -0.128px;
    text-decoration: none;
    transition:
        color 180ms ease,
        text-decoration-color 180ms ease;
}

.dt-auth__forgot:hover,
.dt-auth__forgot:focus-visible {
    color: #f3d594;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* =========================================================
   BOUTONS
   ========================================================= */

.dt-auth__button {
    display: inline-flex;
    width: auto;
    min-height: 43px;
    padding: 10px 20px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 10px;
    background: #e3ba67;
    color: #0e0e0e;
    text-align: center;
    font-family: "Mulish", sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: 23px;
    letter-spacing: -0.6px;
    cursor: pointer;
    box-sizing: border-box;
    transition:
        background-color 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease;
}

.dt-auth__button:hover {
    background: #0E0E0E;
    color:white;
}

.dt-auth__button-v2:hover {
    background: white;
    color:#0E0E0E;
}

.dt-auth__button:active {
    transform: translateY(0);
}

.dt-auth__button:focus-visible {
    outline: 3px solid rgb(227 186 103 / 40%);
    outline-offset: 3px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {
    .dt-auth {
        padding-right: 40px;
        padding-left: 40px;
    }

    .dt-auth__container {
        gap: 32px;
    }

    .dt-auth__panel {
        padding: 30px 26px;
    }
}

@media (max-width: 850px) {
    .dt-auth {
        padding: 48px 24px 64px;
    }

    .dt-auth__container {
        flex-direction: column;
        gap: 28px;
    }

    .dt-auth__panel {
        width: 100%;
        flex: none;
    }

    /*
     * Sur mobile, la connexion passe en premier pour éviter
     * aux clients existants de défiler sous l'inscription.
     */
    .dt-auth__panel--login {
        order: 1;
    }

    .dt-auth__panel--register {
        order: 2;
    }
}

@media (max-width: 560px) {
    .dt-auth {
        padding: 32px 16px 48px;
    }

    .dt-auth__container {
        gap: 20px;
    }

    .dt-auth__panel {
        padding: 28px 20px;
        gap: 32px;
        border-radius: 24px;
    }

    .dt-auth__title {
        font-size: 23px;
        line-height: 28px;
    }

    .dt-auth__form {
        gap: 32px;
    }

    .dt-auth__fields {
        gap: 18px;
    }

    .dt-auth__field {
        gap: 10px;
    }

    .dt-auth__input {
        min-height: 58px;
        padding: 17px 20px;
        font-size: 15px;
    }

    .dt-auth__forgot {
        font-size: 15px;
    }

    .dt-auth__button {
        width: 100%;
        min-height: 48px;
        font-size: 18px;
    }
}


/* =========================================================
   BOUTON RETOUR EN HAUT
   ========================================================= */

.dt-back-to-top {
    display: flex;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 10px;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
}

.dt-back-to-top__button {
    display: flex;
    width: 72px;
    height: 72px;
    padding: 0;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    border: 0;
    border-radius: 10px;
    background: #e3ba67;
    cursor: pointer;
    box-sizing: border-box;
    transition:
        background-color 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease;
}

.dt-back-to-top__icon {
    display: block;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.dt-back-to-top__button:hover {
    background: #efca7b;
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgb(0 0 0 / 14%);
}

.dt-back-to-top__button:active {
    transform: translateY(0);
}

.dt-back-to-top__button:focus-visible {
    outline: 3px solid rgb(227 186 103 / 45%);
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .dt-back-to-top__button {
        width: 58px;
        height: 58px;
    }

    .dt-back-to-top__icon {
        width: 22px;
        height: 22px;
    }
}