﻿/* Login Page Styles */

/* ── Colonne gauche ── */
.login-image-section {
    flex: 1;
    min-height: 100vh;
    overflow: hidden;
    display: none;
}

.login-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* ── Colonne droite ── */
.login-form-section {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    box-sizing: border-box;
    padding: 40px 24px;
    overflow: hidden;
    isolation: isolate;
}

    /* Image de fond floutée */
    .login-form-section::before {
        content: "";
        position: absolute;
        inset: 0;
        background-image: url('../images/backgroundlockers2.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        filter: blur(3px);
        transform: scale(1.04);
        z-index: -2;
    }

    /* Voile noir léger */
    .login-form-section::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.18);
        z-index: -1;
    }

    /* Formulaire au-dessus */
    .login-form-section > * {
        position: relative;
        z-index: 1;
    }

/* ── Carte formulaire ── */
.login-form-container {
    width: 70%;
    min-width: 320px;
    max-width: 480px;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 36px 32px;
    box-sizing: border-box;
    box-shadow: 0 8px 48px rgba(0, 0, 0, 0.22);
}

/* ── Logo ── */
.logo-section {
    text-align: left;
    margin-bottom: 20px;
}

.logo-image {
    width: 160px;
    height: auto;
    object-fit: contain;
    display: block;
}

/* ── Titre ── */
.welcome-section {
    margin-bottom: 20px;
}

.title-underline {
    width: 40px;
    height: 3px;
    background-color: #e31837;
    margin-top: 6px;
    border-radius: 2px;
}

/* ── Formulaire ── */
.login-form {
    margin-bottom: 0;
}

.form-field {
    margin-bottom: 14px;
}

.field-label {
    color: #333;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.8125rem;
    display: block;
}

.login-input {
    width: 100%;
}

    .login-input .mud-input-outlined-border {
        border-color: #ddd;
        border-radius: 4px;
    }

/* ── Bouton Se connecter ── */
.button-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
    margin-bottom: 0;
}

.login-button {
    background-color: #e31837 !important;
    color: white !important;
    text-transform: none !important;
    padding: 10px 30px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(227, 24, 55, 0.28) !important;
}

    .login-button:hover {
        background-color: #c41530 !important;
        box-shadow: 0 4px 16px rgba(227, 24, 55, 0.38) !important;
    }

/* ── Section externe ── */
.external-login-section {
    margin-bottom: 0;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
    margin-top: 16px;
}

.forgot-password-section {
    text-align: center;
    margin-top: 0;
}

.forgot-link {
    color: #64666A !important;
    font-size: 0.875rem !important;
    text-decoration: none !important;
}

    .forgot-link:hover {
        color: #e31837 !important;
        text-decoration: underline !important;
    }

/* ── Desktop (>= 960px) ── */
@media (min-width: 960px) {
    .login-image-section {
        display: block;
    }
}

/* ── Tablette portrait (< 960px) ── */
@media (max-width: 959px) {
    .login-image-section {
        display: none !important;
    }

    .login-form-section {
        padding: 32px 24px;
    }

    .login-form-container {
        width: 75%;
    }
}

/* ── Mobile (< 600px) ── */
@media (max-width: 600px) {
    .login-form-section {
        padding: 24px 16px;
    }

    .login-form-container {
        width: 100%;
        min-width: unset;
        padding: 28px 20px;
        border-radius: 8px;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
    }
}
