.elearning-login-page {
    min-height: 100vh;
    width: 100%;
    background: var(--login-bg);
    color: var(--login-text);
}

.elearning-login-wrapper {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
}

/*
|--------------------------------------------------------------------------
| Partie gauche avec image
|--------------------------------------------------------------------------
*/

.elearning-visual-panel {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    padding: 50px 60px;
    background-image: url("../image/login-learning.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
}

.visual-overlay {
    position: absolute;
    inset: 0;
    background:
            linear-gradient(
                    90deg,
                    rgb(21 66 95 / 0.29) 0%,
                    rgb(106 172 215 / 0.47) 40%,
                    rgb(120 163 211 / 0.2) 100%
            );
    z-index: 1;
}

.elearning-visual-panel::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    right: -120px;
    bottom: -130px;
    border-radius: 50%;
    background: rgba(209, 1, 68, 0.10);
    z-index: 2;
}

.visual-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 620px;
    height: 100%;
    min-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/*
|--------------------------------------------------------------------------
| Branding
|--------------------------------------------------------------------------
*/

.brand {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: auto;
}

.brand-logo {
    width: auto;
    max-width: 65%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: rgb(255 255 255 / 0.31);
    padding: 10px 10px;
    border-radius: 11px;
    box-shadow: 0 8px 20px rgba(1, 38, 78, 0.12);
}

.brand-logo img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.brand-name {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-name span {
    color: var(--ies-blue);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 1px;
}

/*
|--------------------------------------------------------------------------
| Texte
|--------------------------------------------------------------------------
*/
.visual-text {
    margin: auto 0;
}

.visual-label {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: var(--ies-pink);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 2px;
}

.visual-label::before {
    content: "";
    width: 30px;
    height: 2px;
    margin-right: 10px;
    background: var(--ies-pink);
}

.visual-text h1 {
    margin: 0;
    color: var(--ies-blue);
    font-size: clamp(42px, 4.2vw, 60px);
    line-height: 1.06;
    font-weight: 800;
    letter-spacing: -2px;
}

.visual-text h1 .line {
       color: var(--login-white);
}

.visual-text h1 .line > span {
    color: var(--ies-pink);
}

.visual-text p {
    max-width: 520px;
    margin: 27px 0 0;
    color: #f6f8fb;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.75;
}

/*
|--------------------------------------------------------------------------
| Footer partie gauche
|--------------------------------------------------------------------------
*/
.visual-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
}

.visual-footer span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ies-pink);
    box-shadow: 0 0 0 4px rgb(21 66 95 / 0.29);
}

/*
|--------------------------------------------------------------------------
| Partie connexion
|--------------------------------------------------------------------------
*/

.elearning-login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background: #ffffff;
}

.login-container {
    width: 100%;
    max-width: 430px;
}

/*
|--------------------------------------------------------------------------
| Mobile branding
|--------------------------------------------------------------------------
*/

.mobile-brand {
    display: none;
}

/*
|--------------------------------------------------------------------------
| Header
|--------------------------------------------------------------------------
*/

.login-header {
    margin-bottom: 35px;
}

.login-eyebrow {
    color: var(--ies-pink);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.login-header h2 {
    margin: 10px 0 9px;
    color: var(--ies-blue);
    font-size: 39px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1.2px;
}

.login-header p {
    margin: 0;
    color: var(--login-muted);
    font-size: 14px;
    line-height: 1.6;
}

/*
|--------------------------------------------------------------------------
| Erreur
|--------------------------------------------------------------------------
*/
.login-error {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 25px;
    padding: 14px 16px;
    border-left: 4px solid var(--ies-pink);
    border-radius: 8px;
    background: rgba(209, 1, 68, 0.055);
}

.login-error strong {
    color: var(--ies-blue);
    font-size: 13px;
}

.login-error span {
    color: #78616c;
    font-size: 12px;
}

/*
|--------------------------------------------------------------------------
| Formulaire
|--------------------------------------------------------------------------
*/

.login-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

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

.form-group label {
    margin-bottom: 9px;
    color: var(--ies-blue);
    font-size: 15px;
    font-weight: 700;
}

.login-input {
    width: 100%;
    height: 55px;
    box-sizing: border-box;
    padding: 0 17px;
    border: 1px solid var(--login-border);
    border-radius: 11px;
    outline: none;
    background: #ffffff;
    color: var(--ies-blue);
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-input::placeholder {
    color: #a2acb8;
}

.login-input:hover {
    border-color: #cbd3dd;
}

.login-input:focus {
    border-color: var(--ies-pink);
    box-shadow: 0 0 0 4px rgba(209, 1, 68, 0.08);
}

/*
|--------------------------------------------------------------------------
| Bouton
|--------------------------------------------------------------------------
*/

.login-button {
    width: 100%;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 19px;
    border: none;
    border-radius: 11px;
    background: var(--ies-pink);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 25px rgba(209, 1, 68, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-button:hover {
    background: #b9003d;
    transform: translateY(-1px);
    box-shadow: 0 16px 32px rgba(209, 1, 68, 0.23);
}

.login-button:active {
    transform: translateY(0);
}

.login-button-arrow {
    font-size: 20px;
}

/*
|--------------------------------------------------------------------------
| Footer
|--------------------------------------------------------------------------
*/

.login-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 42px;
}

.login-footer p {
    flex-shrink: 0;
    margin: 0;
    color: #9aa4b0;
    font-size: 10px;
    text-align: center;
}

.footer-line {
    width: 100%;
    height: 1px;
    background: #e7ebf0;
}

/* =========================
   PAGE LOAD ANIMATIONS
========================= */

.elearning-visual-panel {
       animation: imageReveal 0.8s ease-out both;
}

.elearning-login-panel {
    animation: panelReveal 0.7s ease-out 0.1s both;
}

/*
|--------------------------------------------------------------------------
| Partie gauche
|--------------------------------------------------------------------------
*/

/* Branding */
.brand {
    animation: fadeUp 0.6s ease-out 0.25s both;
}

/* Petit label "PLATEFORME DE FORMATION" */
.visual-label {
    animation: fadeUp 0.6s ease-out 0.45s both;
}

/* Les lignes du titre */
.visual-text h1 {
    overflow: hidden;
}

.visual-text h1 .line {
    display: block;
    opacity: 0;
    animation: titleLineReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.visual-text h1 .line:nth-child(1) {
    animation-delay: 0.55s;
}

.visual-text h1 .line:nth-child(2) {
    animation-delay: 0.68s;
}

.visual-text h1 .line:nth-child(3) {
    animation-delay: 0.81s;
}

/* Paragraphe */
.visual-text p {
    animation: fadeUp 0.7s ease-out 1s both;
}

/* Footer gauche */
.visual-footer {
    animation: fadeUp 0.6s ease-out 1.15s both;
}

/*
|--------------------------------------------------------------------------
| Partie connexion
|--------------------------------------------------------------------------
*/

.login-header {
    animation: fadeUp 0.6s ease-out 0.35s both;
}

.login-form {
    animation: fadeUp 0.6s ease-out 0.45s both;
}

.login-footer {
    animation: fadeUp 0.6s ease-out 0.55s both;
}
/*
|--------------------------------------------------------------------------
| Keyframes
|--------------------------------------------------------------------------
*/

/* Image : léger zoom + apparition */
@keyframes imageReveal {
    from {
        opacity: 0;
        transform: scale(1.04);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Panneau blanc */
@keyframes panelReveal {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Apparition classique vers le haut */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Titre : montée plus fluide */
@keyframes titleLineReveal {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 1100px) {
    .elearning-login-wrapper {
        grid-template-columns: 1fr 0.9fr;
    }
    .elearning-visual-panel {
        padding: 55px;
    }
    .visual-text h1 {
        font-size: 45px;
    }
    .elearning-login-panel {
        padding: 45px;
    }
}

@media (max-width: 850px) {
    .elearning-login-wrapper {
        display: block;
    }
    .elearning-visual-panel {
        display: none;
    }
    .elearning-login-panel {
        min-height: 100vh;
        padding: 30px 25px;
    }
    .login-container {
        max-width: 450px;
    }
    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 55px;
    }
    .mobile-brand-logo {
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 11px;
        background: #ffffff;
        padding: 5px;
        color: #ffffff;
        font-size: 14px;
        font-weight: 800;
        box-shadow: 0 8px 20px rgba(1, 38, 78, 0.12);
    }

    .mobile-brand-logo img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    .mobile-brand strong {
        display: block;
        color: var(--ies-blue);
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .elearning-login-panel {
        padding: 25px 20px;
    }
    .login-header h2 {
        font-size: 32px;
    }
    .login-footer {
        gap: 8px;
    }
    .login-footer p {
        font-size: 9px;
    }
}