﻿/* LOGIN FULLSCREEN PREMIUM */

/* Contenitore principale */
.page-login {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: url('../img/camion.png') center/cover no-repeat;
    padding: 140px 0 40px; /* spinto verso il basso mantenendo il centro */
}

    /* Overlay scuro sopra il layout */
    .page-login::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.55);
        z-index: 0;
    }

    /* Box login in primo piano */
    .page-login .login-wrapper,
    .page-login .login-box {
        position: relative;
        z-index: 10;
    }

/* Nasconde il contenuto della pagina (solo il body, NON header/footer) */
/* main > *:not(.page-login) {
    display: none !important;
} */

/* Centra il box login */
.login-wrapper {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

.login-box {
    background: #ffffffdd;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    backdrop-filter: blur(6px);
    text-align: center;
}

    /* Titoli */
    .login-box h2 {
        color: #0B7A3E;
        margin-bottom: 10px;
    }

.login-sub {
    margin-bottom: 25px;
    color: #333;
}

/* Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

    .login-form input {
        padding: 14px;
        border: 2px solid #0B7A3E;
        border-radius: 8px;
        font-size: 1rem;
        background: #ffffff;
        transition: 0.3s;
    }

        .login-form input:focus {
            border-color: #12A150;
            box-shadow: 0 0 8px rgba(18,161,80,0.3);
            outline: none;
        }

/* Bottone */
.btn-login {
    padding: 14px;
    background: #0B7A3E;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 1.1rem;
}

    .btn-login:hover {
        background: #12A150;
    }


.page-login {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Responsive: su schermi piccoli riduci un po' lo spostamento */
@media (max-width: 600px) {
    .page-login {
        padding: 100px 0 30px;
    }
}

/* stile pulsante clienti */
.btn-client {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 8px;
    background: #ffffff;
    color: #0B7A3E;
    border: 1px solid #0B7A3E;
    text-decoration: none;
    font-weight: 600;
}

/* applica solo alla pagina di login Identity se vuoi nascondere gli altri elementi */
main > *.identity-login-only { display: none !important; }
