* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #eef0fb;
}

/* Structure principale */

.auth-page {
    display: grid;
    grid-template-columns: 60% 40%;
    min-height: 100vh;
}

/* Partie gauche */

.auth-presentation {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
    padding: 45px 5%;
    color: white;
    background:
        linear-gradient(
            135deg,
            #071525 0%,
            #0b1f35 50%,
            #12395c 100%
        );
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 22px;
    font-weight: bold;
}

.auth-brand img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 12px;
}

.auth-presentation-content {
    max-width: 700px;
    margin: auto 0;
}

.auth-presentation h1 {
    max-width: 650px;
    margin: 0;
    font-size: clamp(38px, 5vw, 72px);
    line-height: 1.05;
}

.auth-presentation h1 span {
    color: #32aaff;
}

.auth-presentation-description {
    /* max-width: 560px; */
    margin-top: 5px;
    color: #d5d8eb;
    font-size: 18px;
    line-height: 1.6;
}

.auth-presentation p {
    color: #d5d8eb;
    line-height: 1.6;
}

.auth-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 35px;
}

.auth-feature {
    padding: 12px 18px;
    color: #25263a;
    background: white;
    border-radius: 25px;
    font-size: 14px;
}

.auth-footer {
    color: #aeb3ca;
    font-size: 13px;
    text-decoration: none !important;
}
.auth-footer .about-link {
    text-decoration: none !important;
}

/* Partie droite */

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 35px;
    background: #f1f2fb;
}

.auth-box {
    width: 100%;
    max-width: 460px;
}

/* Onglets de navigation */

.auth-tabs {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-bottom: 42px;
    padding: 4px;
    overflow: hidden;
    background: white;
    border: 1px solid #d7d9e8;
    border-radius: 13px;
}

.auth-tabs::before {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    z-index: 0;
    width: calc(50% - 6px);
    border-radius: 9px;
    background: linear-gradient(
        90deg,
        #0788e8,
        #006dcc
    );
    content: "";
    transition: left 0.45s ease;
}

/* Page connexion */

.auth-login .auth-tabs::before {
    left: 4px;
    animation: moveToLogin 0.45s ease-out;
}

/* Page inscription */

.auth-register .auth-tabs::before {
    left: calc(50% + 2px);
    animation: moveToRegister 0.45s ease-out;
}

.auth-tab {
    position: relative;
    z-index: 1;
    display: block;
    padding: 13px 8px;
    color: #000000 !important;
    text-align: center;
    text-decoration: none;
    border-radius: 9px;
    transition: color 0.25s ease;
}

.auth-tab.active {
    color: #ffffff !important;
    font-weight: bold;
}

.auth-tab:hover {
    color: #006dcc;
}


/* Animation de l'indicateur bleu */

@keyframes moveToLogin {
    from {
        left: calc(50% + 2px);
    }

    to {
        left: 4px;
    }
}

@keyframes moveToRegister {
    from {
        left: 4px;
    }

    to {
        left: calc(50% + 2px);
    }
}

/* Titres */

.auth-box h2,
.auth-box h3 {
    margin: 0 0 8px;
    color: #10162d;
    font-size: 34px;
    line-height: 1.2;
}

.auth-subtitle {
    margin: 0 0 28px;
    color: #697086;
}

/* Messages et erreurs */

.auth-errors {
    margin-bottom: 20px;
    padding: 13px;
    color: #8b1e2d;
    background: #ffe4e7;
    border: 1px solid #f2aab4;
    border-radius: 9px;
}

.auth-errors p {
    margin: 5px 0;
}

.auth-errors ul {
    margin: 5px 0;
    padding-left: 20px;
}

/* Formulaire */

.auth-form p {
    margin: 0 0 17px;
}

.auth-form label {
    display: block;
    margin-bottom: 7px;
    color: #20263b;
    font-weight: bold;
}

.auth-form input,
.auth-form select,
.auth-form textarea,
.auth-box input,
.auth-box select,
.auth-box textarea {
    display: block;
    width: 100%;
    padding: 14px;
    border: 1px solid #d2d5e2;
    border-radius: 12px;
    outline: none;
    background: white;
    font-family: inherit;
    font-size: 15px;
}

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus,
.auth-box input:focus,
.auth-box select:focus,
.auth-box textarea:focus {
    border-color: #0788e8;
    box-shadow: 0 0 0 3px rgba(7, 136, 232, 0.15);
}

.auth-form .helptext,
.auth-box .helptext {
    display: block;
    margin-top: 6px;
    color: #73798b;
    font-size: 12px;
    line-height: 1.4;
}

.auth-form .errorlist,
.auth-box .errorlist {
    margin: 5px 0;
    padding: 0;
    color: #b42318;
    list-style: none;
    font-size: 13px;
}

/* Bouton principal */

.auth-submit {
    width: 100%;
    margin-top: 8px;
    padding: 15px;
    border: 0;
    border-radius: 12px;
    color: white;
    background: linear-gradient(
        90deg,
        #0788e8,
        #006dcc
    );
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition:
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.auth-submit:hover {
    background: linear-gradient(
        90deg,
        #006dcc,
        #0056a8
    );
    box-shadow: 0 5px 15px rgba(0, 109, 204, 0.35);
    transform: translateY(-1px);
}

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

/* Liens */

.auth-link {
    color: #006dcc;
    font-weight: bold;
    text-decoration: none;
}

.auth-link:hover {
    color: #0056a8;
    text-decoration: underline;
}

.auth-bottom-text {
    margin-top: 22px;
    color: #697086;
    text-align: center;
}

/* Champs obligatoires */

.auth-form input:required,
.auth-form select:required,
.auth-form textarea:required {
    background-color: #ffffff;
}
.auth-box .language-form {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    width: auto !important;
    margin: 0 0 18px 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
}

.auth-box .language-form label {
    display: inline-block !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #20263b !important;
    font-size: 13px !important;
    font-weight: bold !important;
    white-space: nowrap !important;
}

.auth-box .language-form select {
    display: inline-block !important;
    width: 130px !important;
    min-width: 115px !important;
    height: 32px !important;
    margin: 0 !important;
    padding: 5px 7px !important;
    border: 1px solid #d2d5e2 !important;
    border-radius: 7px !important;
    outline: none !important;
    color: #20263b !important;
    background: white !important;
    font-family: inherit !important;
    font-size: 14px !important;
    cursor: pointer !important;
}

.auth-box .language-form select:focus {
    border-color: #0788e8 !important;
    box-shadow: 0 0 0 3px rgba(7, 136, 232, 0.15) !important;
}

@media (max-width: 700px) {
    .auth-box .language-form {
        gap: 5px !important;
        margin-bottom: 12px !important;
    }

    .auth-box .language-form label {
        font-size: 12px !important;
    }

    .auth-box .language-form select {
        width: 100px !important;
        min-width: 100px !important;
        height: 30px !important;
        padding: 4px 6px !important;
        font-size: 11px !important;
    }
}

/* Affichage mobile */

@media (max-width: 850px) {
    .auth-page {
        display: block;
    }

    .auth-presentation {
        min-height: 330px;
        padding: 30px 25px;
    }

    .auth-presentation-content {
        margin: 45px 0 20px;
    }

    .auth-presentation h1 {
        font-size: 40px;
    }

    .auth-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 15px;
    }

    .auth-feature {
        padding: 7px 10px;
        font-size: 11px;
    }
    .auth-panel {
        min-height: auto;
        padding: 30px 20px 45px;
    }
}

/* Accessibilité */

@media (prefers-reduced-motion: reduce) {
    .auth-tabs::before,
    .auth-submit {
        animation: none;
        transition: none;
    }
}

.forgot-password {
    margin: -7px 0 17px;
    text-align: center;
}

.forgot-password a {
    color: #006dcc;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
}

.forgot-password a:hover {
    color: #0056a8;
    text-decoration: underline;
}
.auth-field {
    margin-bottom: 18px;
}

.password-field {
    position: relative;
    margin-top: 20px;
}

.password-field input {
    width: 100%;
    min-height: 56px;
    padding: 18px 14px 10px;
}

.password-field label {
    position: absolute;
    top: -9px;
    left: 14px;
    padding: 0 6px;
    color: #006dcc;
    background: #f1f2fb;
    font-size: 13px;
    font-weight: bold;
    pointer-events: none;
}

.password-field input:focus {
    border-color: #0788e8;
    box-shadow: 0 0 0 3px rgba(7, 136, 232, 0.15);
}

.auth-form label.password-visibility {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px;
    width: auto !important;
    margin: 0 0 18px;
    color: #20263b;
    font-size: 14px;
    font-weight: normal;
    white-space: nowrap;
    cursor: pointer;
}

.auth-form label.password-visibility span {
    order: 1;
}

.auth-form label.password-visibility input[type="checkbox"] {
    display: inline-block !important;
    order: 2;
    width: 17px !important;
    height: 17px !important;
    margin: 0 !important;
    padding: 0 !important;
    accent-color: #006dcc;
    cursor: pointer;
}

/* ================================
   CARROUSEL SENTINEL
================================ */

.sentinel-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin: 5px auto 20px;
    overflow: hidden;
    border-radius: 14px;
}

.sentinel-carousel-container {
    overflow: hidden;
    border-radius: 14px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
}

.sentinel-carousel-track {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease-in-out;
}

.sentinel-carousel-slide {
    position: relative;
    min-width: 100%;
    height: 260px;
    overflow: hidden;
    background: #071525;
}

/* Image Sentinel affichée avec background-image */

.sentinel-publication-image {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 260px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    filter: brightness(0.62);
}

.sentinel-publication-image.sentinel-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bcd7ed;
    background: #173958;
    font-size: 28px;
    filter: none;
}

/* Informations affichées par-dessus l'image */

.sentinel-carousel-info {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    z-index: 1;
    max-width: 90%;
    padding: 12px;
    overflow: hidden;
    border-radius: 8px;
    color: white;
    background: rgba(0, 0, 0, 0.42);
}

.sentinel-carousel-info h3 {
    overflow: hidden;
    margin: 4px 0 7px;
    color: white;
    font-size: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sentinel-carousel-info p {
    margin: 4px 0;
    color: #f1f5f9;
    font-size: 12px;
    line-height: 1.4;
}

.sentinel-category {
    display: inline-block;
    color: #62bdff;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

/* Flèches */

.sentinel-carousel-btn {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 34px;
    height: 34px;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    border-radius: 50%;
    color: white;
    background: rgba(0, 0, 0, 0.48);
    font-size: 22px;
    line-height: 30px;
    cursor: pointer;
}

.sentinel-carousel-btn:hover {
    background: #0c46f4;
}

.sentinel-left {
    left: 10px;
}

.sentinel-right {
    right: 10px;
}

/* Points de navigation */

.sentinel-carousel-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    z-index: 6;
    display: flex;
    gap: 6px;
    transform: translateX(-50%);
}

.sentinel-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #bbbbbb;
    cursor: pointer;
}

.sentinel-dot-active {
    background: #0c46f4;
}
.auth-presentation-description{
    margin:5px;
}

/* Affichage mobile */

@media (max-width: 700px) {
    .sentinel-carousel-wrapper {
        margin-top: 5px;
    }

    .sentinel-carousel-slide {
        height: 230px;
    }

    .sentinel-publication-image {
        min-height: 230px;
    }

    .sentinel-carousel-info {
        right: 12px;
        bottom: 14px;
        left: 12px;
        padding: 9px;
    }

    .sentinel-carousel-info h3 {
        font-size: 15px;
    }

    .sentinel-carousel-info p {
        font-size: 11px;
    }

    .sentinel-carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
    .auth-features{
        display:none;
    }
    .auth-presentation-description{
    margin:5px;
    }
}
@media (min-width: 701px) {
    .sentinel-carousel-wrapper {
        max-width: 700px;
    }

    .sentinel-carousel-slide {
        height: 500px;
    }

    .sentinel-publication-image {
        min-height: 500px;
    }

    .sentinel-carousel-info {
        right: 25px;
        bottom: 25px;
        left: 25px;
        max-width: none;
        padding: 22px 26px;
    }

    .sentinel-carousel-info h3 {
        font-size: 26px;
        line-height: 1.25;
    }

    .sentinel-carousel-info p {
        font-size: 15px;
        line-height: 1.6;
    }

    .sentinel-category {
        font-size: 14px;
    }
}

.google-separator {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 16px;
    color: #8a91a3;
    font-size: 12px;
}

.google-separator::before,
.google-separator::after {
    flex: 1;
    height: 1px;
    background: #d9dce6;
    content: "";
}

.google-login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    border: 1px solid #000000;
    border-radius: 12px;
    color: #ffffff;
    background: #000000;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.google-login-button:hover {
    background: #202020;
    transform: translateY(-1px);
}

.google-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    color: #000000;
    background: #ffffff;
    font-size: 15px;
    font-weight: bold;
}
