:root {
    --login-bg-start: #57c6c2;
    --login-bg-end: #188f9d;
    --login-primary: #149e9d;
    --login-primary-dark: #0d6f79;
    --login-accent: #ffd166;
    --login-text: #14323e;
    --login-muted: #5b7480;
    --login-surface: rgba(255, 255, 255, 0.78);
    --login-surface-strong: rgba(255, 255, 255, 0.92);
    --login-border: rgba(255, 255, 255, 0.35);
    --login-shadow: 0 30px 80px rgba(11, 63, 78, 0.28);
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: "Manrope", sans-serif;
    color: var(--login-text);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.42), transparent 34%),
        radial-gradient(circle at bottom right, rgba(255, 209, 102, 0.20), transparent 24%),
        linear-gradient(135deg, var(--login-bg-start), var(--login-bg-end));
    overflow-x: hidden;
}

.login-page {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    isolation: isolate;
}

.login-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(12px);
    opacity: 0.55;
    z-index: -1;
    animation: floatOrb 8s ease-in-out infinite;
}

.login-orb-one {
    width: 280px;
    height: 280px;
    top: 6%;
    left: 8%;
    background: rgba(255, 255, 255, 0.34);
}

.login-orb-two {
    width: 360px;
    height: 360px;
    right: 4%;
    bottom: 4%;
    background: rgba(255, 209, 102, 0.22);
    animation-delay: 1.8s;
}

.login-shell {
    width: min(1180px, 100%);
    min-height: 720px;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    border-radius: 32px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.20);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: var(--login-shadow);
    backdrop-filter: blur(20px);
}

.login-panel {
    position: relative;
    padding: 42px 42px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    background:
        linear-gradient(180deg, rgba(236, 252, 252, 0.92), rgba(212, 242, 242, 0.84));
    animation: panelReveal 0.9s ease-out both;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

.brand-mark {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(20, 158, 157, 0.18);
    box-shadow: 0 16px 34px rgba(20, 96, 110, 0.15);
}

.brand-mark img {
    width: 62px;
    height: auto;
}

.brand-label,
.visual-kicker,
.hero-tag {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.74rem;
    font-weight: 700;
}

.brand-label {
    display: block;
    margin-bottom: 4px;
    color: var(--login-primary-dark);
}

.brand-badge h1,
.hero-copy h2,
.visual-card h3 {
    margin: 0;
    font-family: "Outfit", sans-serif;
}

.brand-badge h1 {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0d4455;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--login-primary-dark);
    background: rgba(20, 158, 157, 0.10);
}

.hero-copy h2 {
    font-size: clamp(2.2rem, 3vw, 3.3rem);
    line-height: 1.05;
    font-weight: 800;
    color: #083748;
}

.hero-copy h2 span {
    display: block;
    color: var(--login-primary);
}

.hero-copy p {
    margin: 0;
    max-width: 560px;
    font-size: 1.02rem;
    line-height: 1.8;
    color: var(--login-muted);
}

.feature-list {
    display: grid;
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    color: #10404f;
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 12px 30px rgba(34, 99, 115, 0.08);
    transform: translateX(0);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.feature-item:hover {
    transform: translateX(6px);
    box-shadow: 0 18px 36px rgba(34, 99, 115, 0.12);
}

.feature-item i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--login-primary), #55c8c3);
}

.login-card {
    padding: 28px;
    border-radius: 28px;
    background: var(--login-surface-strong);
    border: 1px solid var(--login-border);
    box-shadow: 0 18px 40px rgba(14, 74, 87, 0.12);
}

.login-form {
    display: grid;
    gap: 18px;
}

.alert-banner {
    margin-bottom: 18px;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 0.95rem;
    background: rgba(33, 176, 136, 0.12);
    color: #0f7259;
    border: 1px solid rgba(33, 176, 136, 0.18);
}

.input-group-custom {
    display: grid;
    gap: 8px;
}

.input-group-custom label {
    font-size: 0.94rem;
    font-weight: 700;
    color: #0d4455;
}

.input-shell {
    display: flex;
    align-items: center;
    min-height: 62px;
    border-radius: 20px;
    background: var(--login-surface);
    border: 1px solid rgba(13, 111, 121, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.input-shell:focus-within {
    border-color: rgba(20, 158, 157, 0.58);
    box-shadow: 0 0 0 5px rgba(20, 158, 157, 0.12);
    transform: translateY(-1px);
}

.input-icon,
.toggle-password {
    width: 58px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    color: var(--login-primary);
}

.form-control {
    border: 0;
    min-height: 62px;
    padding: 0 4px;
    font-size: 1rem;
    color: var(--login-text);
    background: transparent;
    box-shadow: none;
}

.form-control:focus {
    background: transparent;
    box-shadow: none;
}

.form-control::placeholder {
    color: #86a2ad;
}

.toggle-password {
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    transition: color 0.25s ease, transform 0.25s ease;
}

.toggle-password:hover {
    color: var(--login-primary-dark);
    transform: scale(1.04);
}

.form__input-error-message {
    font-size: 0.9rem;
    font-weight: 600;
    color: #cc4f5d;
}

.form-button {
    min-height: 62px;
    border: 0;
    border-radius: 20px;
    font-family: "Outfit", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #f6ba44, #f09a3e);
    box-shadow: 0 16px 26px rgba(240, 154, 62, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.form-button:hover,
.form-button:focus {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 20px 34px rgba(240, 154, 62, 0.34);
    filter: saturate(1.04);
}

.form-button i {
    margin-right: 10px;
}

.form-footer {
    display: flex;
    justify-content: center;
}

.forgot-password {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--login-primary-dark);
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.forgot-password:hover {
    color: var(--login-primary);
    transform: translateY(-1px);
}

.visual-panel {
    position: relative;
    width: 100%;
    height: 100%; /* prend toute la hauteur de l'écran */
    
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 38px;

    background-image:
        linear-gradient(160deg, rgba(9, 49, 70, 0.10), rgba(7, 35, 49, 0.52)),
        url("../images/background.jpg");
        
    background-size: cover;       /* couvre toute la zone */
    background-position: center;  /* centre l’image */
    background-repeat: no-repeat; /* évite la répétition */

    animation: imageReveal 1.1s ease-out both;
}

.visual-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 15%, rgba(120, 232, 223, 0.35), transparent 24%),
        linear-gradient(180deg, rgba(7, 35, 49, 0.12), rgba(7, 35, 49, 0.55));
}

.visual-content {
    position: relative;
    z-index: 1;
    width: 100%;
    display: grid;
    gap: 22px;
}

.visual-card {
    max-width: 440px;
    padding: 24px;
    border-radius: 24px;
    color: #fff;
    background: rgba(9, 49, 70, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    box-shadow: 0 16px 40px rgba(5, 24, 34, 0.22);
}

.visual-kicker {
    display: inline-block;
    margin-bottom: 12px;
    color: #8cece0;
}

.visual-card h3 {
    font-size: clamp(1.8rem, 2.4vw, 2.5rem);
    line-height: 1.08;
    font-weight: 800;
    margin-bottom: 12px;
}

.visual-card p {
    margin: 0;
    max-width: 360px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.86);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.stat-chip {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: 20px;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.stat-chip strong {
    font-family: "Outfit", sans-serif;
    font-size: 1.5rem;
    line-height: 1;
}

.stat-chip span {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.88);
}


/* Améliorations de la section du formulaire    */
.brand-header {
    text-align: center;
    margin-bottom: 25px;
}

.brand-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
}

.brand-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    color: #1f2d3d;
}

.login-panel {
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    width: 100%;
    max-width: 400px;
}

/* Améliorations de la section de l'image */
.visual-panel {
    opacity: 0;
    transform: translateX(40px) scale(1.02);
    animation: visualReveal 1.2s ease-out forwards;
    animation-delay: 0.3s; /* arrive après le formulaire */
}

@keyframes visualReveal {
    0% {
        opacity: 0;
        transform: translateX(60px) scale(1.05);
        filter: blur(8px);
    }
    60% {
        opacity: 0.7;
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
        filter: blur(0);
    }
}   

@keyframes slowZoom {
    from {
        transform: scale(1);
    }
    to {
        transform: scale(1.08);
    }
}

.visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.5),
        rgba(0,0,0,0.2),
        rgba(0,0,0,0.1)
    );
}

@keyframes floatOrb {
    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(0, -14px, 0) scale(1.04);
    }
}

@keyframes panelReveal {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes imageReveal {
    from {
        opacity: 0;
        transform: scale(1.04);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 1080px) {
    .login-shell {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .visual-panel {
        min-height: 380px;
    }
}

@media (max-width: 768px) {
    .login-page {
        padding: 18px;
    }

    .login-panel,
    .visual-panel {
        padding: 24px;
    }

    .login-card {
        padding: 22px 18px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .login-shell {
        border-radius: 24px;
    }

    .brand-badge {
        align-items: flex-start;
    }

    .brand-mark {
        width: 72px;
        height: 72px;
    }

    .brand-mark img {
        width: 54px;
    }

    .feature-item {
        align-items: flex-start;
    }

    .visual-panel {
        min-height: 320px;
    }
}
.brand-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}