/* ============================================================
   CAMPUS VIGNY - LemonLDAP::NG
   ============================================================ */

/* Fond général */
html,
body {
    min-height: 100%;
}

body {
    background:
        linear-gradient(
            135deg,
            rgba(10, 22, 35, 0.72),
            rgba(10, 22, 35, 0.38)
        ),
        url("/static/CustomTheme/images/campus-bg.jpg")
        center center / cover fixed no-repeat !important;
}


/* ------------------------------------------------------------
   En-tête / Logo
   ------------------------------------------------------------ */

#header {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

#header img {
    background: transparent !important;
    max-width: min(430px, 85vw) !important;
    max-height: 125px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.20));
}


/* ------------------------------------------------------------
   Zone de connexion
   ------------------------------------------------------------ */

#logincontent {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 20px;
    padding-bottom: 40px;
}


/* Carte principale */
#logincontent .card {
    background: rgba(255, 255, 255, 0.94) !important;
    border: 1px solid rgba(255,255,255,0.45) !important;
    border-radius: 20px !important;

    box-shadow:
        0 20px 50px rgba(0,0,0,0.28),
        0 4px 12px rgba(0,0,0,0.10) !important;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    overflow: hidden;
}


/* Formulaire */
#logincontent .form-control {
    min-height: 48px;
    border-radius: 10px !important;
    border-color: #d7dde3;
    box-shadow: none !important;
}

#logincontent .form-control:focus {
    border-color: #526b7d;
    box-shadow: 0 0 0 0.20rem rgba(82,107,125,0.15) !important;
}


/* Icônes devant user/password */
#logincontent .input-group-text {
    min-width: 48px;
    justify-content: center;
    background: #f4f6f8;
    border-color: #d7dde3;
}


/* Bouton principal */
#logincontent .btn-success {
    min-height: 46px;
    border: 0 !important;
    border-radius: 10px !important;

    background: #263f52 !important;
    box-shadow: 0 5px 12px rgba(0,0,0,0.14);
}

#logincontent .btn-success:hover,
#logincontent .btn-success:focus {
    background: #172c3b !important;
}


/* Boutons secondaires */
#logincontent .btn-primary {
    border-radius: 10px !important;
}


/* Messages / erreurs */
#logincontent .alert {
    border: 0;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}


/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */

@media (max-width: 576px) {

    body {
        background-attachment: scroll !important;
    }

    #header img {
        max-width: 82vw !important;
        max-height: 95px !important;
    }

    #logincontent {
        max-width: none;
        padding-left: 15px;
        padding-right: 15px;
        padding-top: 5px;
    }

    #logincontent .card {
        border-radius: 16px !important;
    }
}

/* Masquage du footer LemonLDAP */
#footer {
    display: none !important;
}
