
/* =========================================================
   Login page - sfondo bianco + riquadro glow
   Adatta i selettori alle classi/ID reali se necessario
   ========================================================= */

:root {
    --bg: #ffffff;
    --card-bg: #ffffff;
    --text: #1f2937;
    --text-muted: #6b7280;
    --accent: #2b8cff;
    --accent-dark: #1769d6;
    --glow: rgba(43, 140, 255, 0.45);
    --field-bg: #f5f7fb;
    --field-border: #d5dbe7;
    --radius: 16px;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
}




body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    color: var(--text);

}

body {
    background-image: url('../images/bkgadmin.webp');
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    background-color: #00548c;
}
/* ---------- Riquadro del form con effetto glow ---------- */

.labelcontrol {
    font-size:small;
}
form {
    width: 100%;
    max-width: 340px;
    padding: 14px 22px 14px;
    background: var(--card-bg);
    border: 1.5px solid var(--accent);
    border-radius: var(--radius);
    box-shadow: 0 0 3px var(--glow), 0 0 12px var(--glow), 0 0 30px rgba(43, 140, 255, 0.22), 0 8px 28px rgba(43, 140, 255, 0.12);
    animation: glow-pulse 3.5s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 0 0 3px var(--glow), 0 0 12px var(--glow), 0 0 30px rgba(43, 140, 255, 0.22), 0 8px 28px rgba(43, 140, 255, 0.12);
    }

    50% {
        box-shadow: 0 0 5px var(--glow), 0 0 20px var(--glow), 0 0 48px rgba(43, 140, 255, 0.32), 0 10px 34px rgba(43, 140, 255, 0.2);
    }
}

/* ---------- Etichette ---------- */
label {
    display: block;
    margin: 0 0 2px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ---------- Campi di input ---------- */
input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    height: 40px;
    margin: 0 0 6px;
    padding: 0 10px;
    font-size: 0.88rem;
    color: var(--text);
    background: var(--field-bg);
    border: 1px solid var(--field-border);
    border-radius: 7px;
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

    input[type="text"]:focus,
    input[type="password"]:focus,
    input[type="email"]:focus {
        background: #fff;
        border-color: var(--accent);
        box-shadow: 0 0 0 2px rgba(43, 140, 255, 0.18), 0 0 10px var(--glow);
    }

/* ---------- Remember me ---------- */
input[type="checkbox"] {
    width: 13px;
    height: 13px;
 
    vertical-align: middle;
    accent-color: var(--accent);
    cursor: pointer;
}

    input[type="checkbox"] + label,
    label:has(input[type="checkbox"]) {
        display: inline-block;  
        font-size: 0.78rem;
        font-weight: 400;
        text-transform: none;
        letter-spacing: 0;
        color: var(--text-muted);
        cursor: pointer;
    }

/* ---------- Pulsante Login ---------- */
button,
input[type="submit"],
input[type="button"] {
    width: 100%;
    /* height: 32px; */
    padding: 0 12px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border: none;
    border-radius: 7px;
    cursor: pointer;
    box-shadow: 0 3px 10px var(--glow);
    transition: transform 0.15s, box-shadow 0.25s, filter 0.25s;
}

    button:hover,
    input[type="submit"]:hover,
    input[type="button"]:hover {
        filter: brightness(1.06);
        box-shadow: 0 4px 16px var(--glow), 0 0 22px rgba(43, 140, 255, 0.35);
        transform: translateY(-1px);
    }

    button:active,
    input[type="submit"]:active,
    input[type="button"]:active {
        transform: translateY(0);
    }

/* ---------- Testo release ---------- */
.release,
#release,
small {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* Rispetta chi preferisce meno animazioni */
@media (prefers-reduced-motion: reduce) {
    form {
        animation: none;
    }
}


.spinner-border-login {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: -.125em;
    border: .25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    -webkit-animation: .75s linear infinite spinner-border;
    animation: .75s linear infinite spinner-border;
    margin-left: 2em;
    color: #082969 !Important;
    padding: 0px !Important;
}