/* Pages d'authentification — charte Ataviti (Direction A · Sapin clair) */
:root {
    --ataviti-green: #1c4d4d;
    --ataviti-ink: #0f2b2b; /* vert sapin très foncé — texte CTA sur orange, contraste AA (5:1) */
    --ataviti-orange: #ff6131;
    --ataviti-orange-hover: #de572c;
    --ataviti-cream: #fffdf7;
}

.auth-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.auth-form {
    background-color: var(--ataviti-cream);
    border-radius: 16px;
    padding: 34px 30px;
    box-shadow: 0 12px 40px rgba(28, 77, 77, 0.16);
    border: 1px solid rgba(28, 77, 77, 0.08);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.auth-logo {
    display: block;
    margin: 0 auto 2.2rem;
    max-width: 84px;
    max-height: 84px;
}

.auth-title {
    color: var(--ataviti-ink);
    font-family: 'Roboto Slab', Georgia, 'Times New Roman', serif;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1.6rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.auth-button {
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    background-color: var(--ataviti-orange);
    color: #ffffff;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.08s ease;
}

    .auth-button:hover {
        background-color: var(--ataviti-orange-hover);
        color: #ffffff;
    }

    .auth-button:active {
        transform: translateY(1px);
    }

    .auth-button:disabled {
        cursor: not-allowed;
        background-color: #e0d7c2;
        color: #9b9078;
    }

/* Fond de page = dégradé vert sapin (gateway premium), carte crème en surimpression */
.custom-background {
    background: linear-gradient(150deg, #1c4d4d 0%, #24605c 48%, #2f6f64 100%);
    padding: 20px;
    color: #ffffff;
    position: relative;
    min-height: 100vh;
}

    .custom-background::before {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(1100px 620px at 50% -12%, rgba(255, 255, 255, 0.10), transparent 60%);
        pointer-events: none;
    }

.small-link {
    font-size: 0.875rem;
    color: var(--ataviti-green);
    font-weight: 600;
    text-decoration: none;
}

    .small-link:hover {
        text-decoration: underline;
        color: var(--ataviti-orange-hover);
    }

/* ===== Login « split premium » : panneau de marque + formulaire ===== */
.auth-split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    min-height: 100vh;
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.auth-brand {
    position: relative;
    overflow: hidden;
    padding: 48px 50px;
    color: #eef4ee;
    background: linear-gradient(150deg, #1c4d4d 0%, #245f5a 55%, #2f6f64 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .auth-brand::after {
        content: '';
        position: absolute;
        inset: 0;
        background: radial-gradient(720px 400px at 14% -10%, rgba(255, 255, 255, 0.12), transparent 60%);
        pointer-events: none;
    }

    .auth-brand > * {
        position: relative;
        z-index: 1;
    }

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .brand-logo img {
        width: 42px;
        height: 42px;
    }

    .brand-logo span {
        font-family: 'Roboto Slab', Georgia, serif;
        font-size: 22px;
        font-weight: 600;
        letter-spacing: 0.01em;
    }

.brand-em {
    position: absolute;
    right: -70px;
    bottom: -80px;
    width: 340px;
    height: 340px;
    opacity: 0.12;
    z-index: 0;
}

.brand-pitch h2 {
    font-family: 'Roboto Slab', Georgia, serif;
    font-size: 34px;
    line-height: 1.12;
    font-weight: 600;
    margin: 0 0 24px;
    max-width: 15ch;
    letter-spacing: -0.01em;
}

.brand-feats {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

    .brand-feats li {
        position: relative;
        padding-left: 30px;
        font-size: 15px;
        color: rgba(238, 244, 238, 0.9);
    }

        .brand-feats li::before {
            content: '✓';
            position: absolute;
            left: 0;
            top: -1px;
            color: var(--ataviti-orange);
            font-weight: 700;
        }

.brand-foot {
    font-size: 12px;
    color: rgba(238, 244, 238, 0.55);
}

.auth-panel {
    background: var(--ataviti-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

    .auth-panel .auth-form {
        background: transparent;
        box-shadow: none;
        border: 0;
        padding: 0;
        max-width: 360px;
        text-align: left;
    }

    .auth-panel .auth-title {
        justify-content: flex-start;
        font-size: 1.6rem;
        margin-bottom: 0.35rem;
    }

    .auth-panel .form-control {
        border-radius: 10px;
        border: 1px solid #d8ceba;
        padding: 0.7rem 0.85rem;
    }

        .auth-panel .form-control:focus {
            border-color: var(--ataviti-green);
            box-shadow: 0 0 0 0.2rem rgba(28, 77, 77, 0.15);
        }

.auth-sub {
    color: #5c736f;
    font-size: 0.9rem;
    margin: 0 0 1.6rem;
}

@media (max-width: 820px) {
    .auth-split {
        grid-template-columns: 1fr;
    }

    .auth-brand {
        padding: 24px 26px;
        flex-direction: row;
        align-items: center;
        gap: 14px;
    }

        .auth-brand .brand-pitch,
        .auth-brand .brand-foot,
        .auth-brand .brand-em {
            display: none;
        }
}

/* Consignes du mot de passe, mises à jour pendant la saisie */
.password-rules {
    list-style: none;
    margin: -4px 0 16px;
    padding: 0 4px;
    text-align: left;
    font-size: 13px;
    color: #6c757d;
}

    .password-rules li::before {
        content: '○';
        display: inline-block;
        width: 18px;
    }

    .password-rules li.is-valid {
        color: var(--ataviti-green);
    }

        .password-rules li.is-valid::before {
            content: '✓';
            font-weight: bold;
        }
