body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin:0;
    background: linear-gradient(to right, #00c6ff, #0072ff);
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
	padding: 20px; /* Aggiungi un po' di spazio attorno al contenuto */
    box-sizing: border-box; /* Assicura che il padding non influenzi la larghezza e altezza */
}


.background-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.shape1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: -100px;
}

.shape2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    right: -50px;
}

.login-form {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
    z-index: 1;
}

.login-form .form-control {
    border-radius: 30px;
    font-size: 1.1rem;
    padding: 12px 20px;
    border: 2px solid #0072ff;
    transition: border-color 0.3s ease;
}

.login-form .form-control:focus {
    border-color: #00c6ff;
    box-shadow: 0 0 5px rgba(0, 198, 255, 0.5);
}

.login-form button {
    border-radius: 30px;
    background: linear-gradient(to right, #00c6ff, #0072ff);
    border: none;
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
    padding: 12px 25px;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.login-form button:hover {
    background: linear-gradient(to right, #005ecb, #009dcf);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.login-form .btn-danger {
    background: linear-gradient(to right, #ff4d4d, #ff0000);
    color: #fff;
    border: none;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
}

.login-form .btn-danger:hover {
    background: linear-gradient(to right, #e60000, #cc0000);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(255, 0, 0, 0.3);
}

.login-form .form-text {
    text-align: center;
    font-size: 1rem;
    color: #0072ff;
    margin-top: 15px;
}

.alert-danger {
    margin-top: 15px;
    text-align: center;
    font-size: 1rem;
    padding: 10px;
    border-radius: 10px;
}

h2 {
    font-weight: 700;
    font-size: 2rem;
    color: #005ecb;
    text-align: center;
    margin-bottom: 25px;
}

.logo {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.logo img {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: contain;
}

.input-group .btn-outline-secondary {
    border-radius: 0 30px 30px 0;
    padding: 0 15px;
    border: 2px solid #0072ff;
    background: #f8f9fa;
}

.input-group .btn-outline-secondary:hover {
    background: #0072ff;
    color: white;
    border-color: #00c6ff;
}

.input-group .btn-outline-secondary:focus {
    box-shadow: 0 0 5px rgba(0, 198, 255, 0.5);
}

@media (max-width: 600px) {
    body {
        padding-top: 40px; /* Riduci il padding su schermi piccoli */
    }
}

/*gestione dello spinner */

.spinner-login {
    border: 8px solid #f3f3f3; /* Light grey */
    border-top: 8px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  #spinner-login {
    position: absolute;
    justify-content: center;
    align-items: center;

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
  }
  

  .custom-btn-close {
    background-color: red; /* Colore di sfondo */
    border-radius: 50%; /* Forma arrotondata */
    width: 20px; /* Larghezza personalizzata */
    height: 20px; /* Altezza personalizzata */
    opacity: 1; /* Rende il pulsante completamente visibile */
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-btn-close::after {
    content: '×'; /* Simbolo di chiusura */
    color: white; /* Colore del testo */
    font-size: 16px; /* Dimensione del testo */
    font-weight: bold;
}


/*nuovo spinner */


.button-animate {
    animation: pulse 1.8s ease;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0px rgba(0, 0, 0, 0);
    }

    50% {
        transform: scale(2);
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    }

    100% {
        transform: scale(3);
        box-shadow: 0 0 0px rgba(0, 0, 0, 0);
    }
}

#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    /* Sfondo nero trasparente */
    display: none;
    /* Nascosto di default */
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
}

.spinner {
    width: 100px;
    height: 100px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#loadingText {
    color: white;
    font-size: 30px;
}
