/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================
   VARIABILI
========================= */

:root {
    --colore-primario: #23c6c8;
    --colore-primario-hover: #188385;
    --sfondo-vetro: rgba(0, 0, 0, 0.4);
    --bianco-leggero: rgba(255, 255, 255, 0.1);
    --bianco-medio: rgba(255, 255, 255, 0.2);
    --bianco-placeholder: rgba(255, 255, 255, 0.6);
    --ombra-box: 0 15px 35px rgba(0, 0, 0, 0.5);
    --ombra-focus: 0 0 10px rgba(0, 123, 255, 0.3);
    --ombra-bottone: 0 5px 15px rgba(0, 123, 255, 0.4);
    --raggio: 8px;
    --transizione: 0.3s ease;
}

/* =========================
   LAYOUT GENERALE
========================= */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #000;
    overflow-x: hidden;
    position: relative;
}

/* =========================
   VIDEO BACKGROUND
========================= */

#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

/* Overlay per scurire il video */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
}

/* =========================
   FORM ASPX risoluzione problemi
========================= */

/* Il tag <form> di ASP.NET non deve interferire con il flex del body */
form {
    display: contents;
}

/* =========================
   CONTENITORE LOGIN
========================= */

.contenitore-login {
    position: relative;
    z-index: 1;
    width: 90%;
    max-width: 460px;
    padding: 45px 50px;
    background: var(--sfondo-vetro);
    border: 1px solid var(--bianco-leggero);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: var(--ombra-box);
    color: #fff;
}

/* =========================
   TITOLO
========================= */

.titolo {
    margin-bottom: 30px;
    color: #23c6c8;
    font-size: 2rem;
    text-align: center;
    letter-spacing: 2px;
}

/* =========================
   INPUT
========================= */

.gruppo-input {
    margin-bottom: 25px;
}

    .gruppo-input input {
        width: 100%;
        padding: 12px 15px;
        background: var(--bianco-leggero);
        border: 1px solid var(--bianco-medio);
        border-radius: var(--raggio);
        outline: none;
        color: #fff;
        font-size: 1rem;
        transition: background var(--transizione), border-color var(--transizione), box-shadow var(--transizione);
    }

        .gruppo-input input:focus {
            background: var(--bianco-medio);
            border-color: var(--colore-primario);
            box-shadow: var(--ombra-focus);
        }

        /* Placeholder */

        .gruppo-input input::placeholder {
            color: var(--bianco-placeholder);
        }

/* =========================
   BOTTONE
========================= */

.bottone-invio {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: var(--raggio);
    background: var(--colore-primario);
    color: #fff;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background var(--transizione), transform var(--transizione), box-shadow var(--transizione);
}

    .bottone-invio:hover {
        background: var(--colore-primario-hover);
        box-shadow: var(--ombra-bottone);
        transform: translateY(-2px);
    }

    .bottone-invio:active {
        transform: scale(0.98);
    }

    /* Accessibilità tastiera */

    .bottone-invio:focus-visible,
    .gruppo-input input:focus-visible {
        outline: 2px solid #fff;
        outline-offset: 2px;
    }

/* =========================
   LOGO
========================= */

.logo-login {
    display: block;
    margin: 0 auto 15px auto;
    max-height: 100px;
}

/* =========================
   SOTTOTITOLO
========================= */

.sottotitolo-login {
    color: var(--bianco-placeholder);
    font-size: 0.95rem;
    text-align: center;
    margin-top: -20px;
    margin-bottom: 30px;
}

/* =========================
   CHECKBOX RICORDA
========================= */

.gruppo-checkbox {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: var(--bianco-placeholder);
    font-size: 0.95rem;
}

    .gruppo-checkbox input[type="checkbox"] {
        width: 16px;
        height: 16px;
        cursor: pointer;
        accent-color: var(--colore-primario);
    }

/* =========================
   AREA ERRORI
========================= */

.area-errori {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #ff6b6b;
    min-height: 20px;
}

/* =========================
   COPYRIGHT
========================= */

.copyright-login {
    margin-top: 25px;
    text-align: center;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.8rem;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 600px) {
    .contenitore-login {
        padding: 30px 25px;
    }

    .titolo {
        font-size: 1.6rem;
    }
}
