/* ========================================
   PAGE AUTHENTIFICATION
======================================== */
body {
    background: var(--cream);
}

.auth-logo {
    color: var(--cacao);
    font-family: 'Instrument Serif', serif;
    font-size: 19px;
    letter-spacing: 1px;
    text-decoration: none;
}

.auth-eyebrow {
    display: block;
    color: var(--blue);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.3px;
    margin-bottom: 20px;
}

.auth-page {
    width: min(1400px, calc(100% - 100px));
    min-height: 680px;
    margin: 65px auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;

    box-shadow:
        0 12px 45px rgba(53, 38, 32, 0.09),
        0 2px 8px rgba(53, 38, 32, 0.04);
}

/* ========================================
   PARTIE GAUCHE
======================================== */
.auth-visual {
    background: var(--cream);
    padding: 45px 55px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 680px;
}

.auth-visual-content {
    width: 100%;
    max-width: 490px;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.auth-visual-content .auth-eyebrow {
    font-size: 1rem;
    margin-bottom: 18px;
}

.auth-visual h1 {
    font-family: 'Instrument Serif', serif;
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.05;
    color: var(--cacao);
    margin: 0 0 22px;
}

.auth-visual h1 em {
    color: var(--blue);
}

.auth-copy p {
    font-size: 1rem;
    line-height: 1.8;
    color: #75675D;
    max-width: 430px;
    margin: 0;
}

/* Illustration */
.auth-illustration {
    width: 85%;
    height: 290px;
    margin: 0;
    padding-top: 30px;
    background: transparent;
    border-radius: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    overflow: visible;
}

.auth-illustration img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
}

.auth-visual-footer {
    font-size: 11px;
    letter-spacing: 1.2px;
    color: var(--blue);
    font-weight: 600;
}

/* ========================================
   PARTIE DROITE
======================================== */
.auth-form-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 65px;
    background: var(--white);
}

.auth-form-container {
    width: 100%;
    max-width: 450px;
}

.auth-back {
    display: inline-block;
    font-size: 1rem;
    color: var(--blue);
    text-decoration: none;
    margin-bottom: 65px;
}

.auth-form-container .auth-eyebrow {
    font-size: 0.9rem;
    margin-bottom: 18px;
}

.auth-form-container h2 {
    font-family: 'Instrument Serif', serif;
    font-size: 2.7rem;
    font-weight: 400;
    line-height: 1.1;
    color: var(--cacao);
    margin-bottom: 18px;
}

.auth-description {
    font-size: 1rem;
    line-height: 1.8;
    color: #81756D;
    margin-bottom: 40px;
}

/* Champs */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--cacao);
}

.form-group input {
    width: 100%;
    box-sizing: border-box;
    height: 55px;
    padding: 0 18px;
    border: 1px solid #E8DED3;
    border-radius: 7px;
    background: var(--white);
    color: var(--cacao);
    font-family: inherit;
    font-size: 0.9rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(52, 75, 89, 0.08);
}

/* Options */
.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #75675D;
}

.remember-me input {
    accent-color: var(--cacao);
}

/* Bouton */
.auth-submit {
    width: 100%;
    height: 55px;
    border: none;
    border-radius: 30px;
    background: var(--cacao);
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    transition: background 0.2s ease;
}

.auth-submit:hover {
    background: var(--blue);
}

/* Inscription */
.auth-register {
    text-align: center;
    margin-top: 40px;
    font-size: 0.9rem;
    color: #81756D;
}

.auth-register a {
    color: var(--cacao);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Erreur */
.auth-error {
    padding: 14px;
    margin-bottom: 22px;
    background: #F8EAE6;
    border-radius: 7px;
    color: #9A5147;
    font-size: 1rem;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 1000px) {
    .auth-page {
        width: calc(100% - 40px);
        grid-template-columns: 1fr 1fr;
    }

    .auth-visual {
        padding: 35px;
    }

    .auth-form-section {
        padding: 35px;
    }

    .auth-form-container h2 {
        font-size: 40px;
    }

    .auth-illustration {
        height: 230px;
    }
}

@media (max-width: 750px) {
    .auth-page {
        grid-template-columns: 1fr;
        width: calc(100% - 30px);
        margin: 25px auto;
    }

    .auth-visual {
        min-height: auto;
        padding: 30px;
    }

    .auth-visual-content {
        margin: 45px auto;
    }

    .auth-illustration {
        width: 80%;
        height: 200px;
    }

    .auth-visual-footer {
        display: none;
    }

    .auth-form-section {
        padding: 45px 30px;
    }

    .auth-back {
        margin-bottom: 40px;
    }
}
