/* Sidebar moderna */
.sidebar {
    width: 250px;
    background: linear-gradient(135deg, #1e1e2e, #29293d);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.3);
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    transition: width 0.3s ease-in-out;
}

/* Menu */
.sidebar ul {
    list-style: none;
    padding: 0;
    width: 100%;
}

.sidebar ul li {
    width: 100%;
}

/* Voci di menu con effetto moderno */
.sidebar ul li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
    position: relative;
}

/* Icone animate */
.sidebar ul li a i {
    margin-right: 12px;
    font-size: 18px;
    transition: transform 0.3s ease;
}

/* Effetto al passaggio del mouse */
.sidebar ul li a:hover {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transform: scale(1.05);
}

.sidebar ul li a:hover i {
    transform: rotate(10deg);
}
.content{
    text-align: center;
}

/* Menu responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 80px;
        padding: 10px;
    }

    .sidebar ul li a {
        text-align: center;
        font-size: 14px;
        justify-content: center;
        padding: 12px 10px;
    }

    .sidebar ul li a i {
        margin: 0;
    }

    .content {
        margin-left: 90px;
    }

    .logo {
        width: 50px;
    }
    .login-form {
        width: 90%;
    }
}
body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    height: 100vh;
    margin: 0;
}
.login-form {
    width: 350px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

#titolo {
    text-align: center;
    margin-bottom: 20px;
}

.logo {
    width: 10rem;
    height: auto;
    scale: 1.4;
}

#titolo h2 {
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
    margin-top: 10px;
}

.lable {
    display: block;
    text-align: left;
    width: 100%;
    color: white;
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    outline: none;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

input[type="text"]:focus,
input[type="password"]:focus {
    border-color: #eaf6ff;
    box-shadow: 0 0 8px rgba(141, 158, 255, 0.6);
}

.input[type="checkbox"] {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
    margin-bottom: 15px;
}

.checkbox-container input {
    width: 18px;
    height: 18px;
    margin: 0;
}

.checkbox-container small {
    color: white;
    font-size: 14px;
    cursor: pointer;
}

.error-message {
    color: #ff4d4d;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
}

button#accedi {
    background: linear-gradient(135deg, #299be9, #1e1e2e);
    color: #fff;
    border: none;
    padding: 12px;
    width: 10rem;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

button#accedi:hover {
    background: linear-gradient(135deg, #1e1e2e, #299be9);
    transform: scale(1.05);
    transition: all 0.3s ease, background-position 1ms;
}

button#accedi:active {
    transform: scale(0.95);
}
.disabled a{
    cursor: not-allowed;
}
/* HTML: <div class="loader"></div> */
.loader {
    width: 60px;
    height: 25px;
    border: 2px solid;
    box-sizing: border-box;
    border-radius: 50%;
    display: grid;
    animation: l2 2s infinite linear;
  }
  .loader:before,
  .loader:after {
    content: "";
    grid-area: 1/1;
    border: inherit;
    border-radius: 50%;
    animation: inherit;
    animation-duration: 3s;
  }
  .loader:after {
    --s:-1;
  }
  @keyframes l2 {
     100% {transform:rotate(calc(var(--s,1)*1turn))}
  }

/* Sfondo semi-trasparente per il pop-up */
.popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7); /* Sfondo scuro semi-trasparente */
	display: flex;
	justify-content: center;
	align-items: center;
	opacity: 1;
	transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
	z-index: 1000; /* Porta il pop-up in primo piano */
}

/* Contenitore del pop-up */
.popup {
	background: #29293d; /* Stesso colore delle card */
	color: white;
	width: 90%;
	max-width: 400px;
	padding: 20px;
	border-radius: 10px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
	transform: translateY(-20px);
	text-align: center;
}

/* Intestazione del pop-up */
.popup-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 1.3em;
	font-weight: bold;
	padding-bottom: 10px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Bottone di chiusura */
.popup-close {
	background: none;
	border: none;
	font-size: 22px;
	font-weight: bold;
	color: white;
	cursor: pointer;
}

.popup-close:hover {
	color: #007bff;
}

/* Corpo del pop-up */
.popup-body {
	margin-top: 10px;
	font-size: 16px;
	color: #ddd;
}

/* Pulsanti */
.popup-actions {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 15px;
}

.popup-actions button {
	padding: 10px 15px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	font-size: 14px;
	font-weight: bold;
}

.popup-actions .btn-close {
	background: #dc3545;
	color: white;
}

.popup-actions .btn-close:hover {
	background: #a71d2a;
}
