      /* Reset & Base Styles */
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background-color: #ccc; 
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 40px 20px;
        }

        /* Logo Area */
        .logo-container2 {
            background-color: #1e2b3c;
            text-align: center;
            padding: 25px;
            border-radius: 12px 12px 0 0;
            margin: -40px -40px 25px;
        }
        .logo-container2 img {
            max-width: 150px;
            height: auto;
        }

        /* Login Box */
        .login-box {
            background: #ffffff;
            width: 100%;
            max-width: 400px;
            padding: 40px;
            border-radius: 12px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.3);
        }

        .login-box input[type="text"],
        .login-box input[type="password"] {
            width: 100%;
            padding: 12px 15px;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            outline: none;
            transition: border-color 0.3s;
            font-size: 16px;
            margin-bottom: 20px;
        }

        .login-box input:focus {
            border-color: #1a237e;
        }


.login-box input::placeholder {
    font:14px 'Inter',sans-serif;
    color: #666;
    opacity: 1; 
}


/* checkbox */
.login-box input[type="checkbox"]{
width:auto;
margin-right:6px;
cursor:pointer;
  appearance:none;
  -webkit-appearance:none;
  width:18px;
  height:18px;
  border:1px solid #ddd;
  border-radius:4px;
  background:#fff;
  position:relative;
}

.login-box .check{
display:inline-flex;
align-items:center;
font:14px 'Inter',sans-serif;
color: #666;
margin-bottom:18px;
cursor:pointer;
}

/* checked background */
.login-box input[type="checkbox"]:checked{
  background: #1e2b3c;    /* colore interno selezionata */
  border-color: #1e2b3c;  /* bordo quando è checked */
}

/* checkmark */
.login-box input[type="checkbox"]:checked::after{
  content:"";
  position:absolute;
  top:1px;
  left:6px;
  width:4px;
  height:9px;
  border: solid white;   /* colore della spunta */
  border-width:0 2px 2px 0;
  transform:rotate(45deg);
}

/* recaptcha */
.g-recaptcha-outer{
	margin-bottom: 18px;
	padding-left: 12px;
    text-align: left;
    border-radius: 0.375rem;
    background: #f9f9f9;
    border: solid 1px #e0e0e0;
	overflow: hidden;
}
.g-recaptcha-inner{
    width: 290px;
    height: 73px;
    overflow: hidden;
    margin: 0;
}
.g-recaptcha{
    position:relative;
    left: -2px;
    top: -1px;
}


        /* Button */
        .btn-login {
            width: 100%;
            padding: 14px;
            background-color: #1e2b3c;
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            transition: background 0.3s, transform 0.1s;
        }

        .btn-login:hover {
            background-color: #2a3d54;
        }

        .btn-login:active {
            transform: scale(0.98);
        }

        /* Responsive */
        @media (max-width: 480px) {
            .login-box {
                padding: 30px 20px;
            }
            .logo-container2 {
 
                margin: -30px -20px 25px;
            }
            .logo-container2 img {
                max-width: 120px; 
            }
        }


        
/* msg */

#msg-wrapper {
    position: fixed;
    z-index: 9999;
    padding: 20px;
    pointer-events: none; /* Permette di cliccare ciò che sta sotto se non ci sono toast */
    bottom: 0; right: 0;
}

@media (max-width: 767px) {
    #msg-wrapper { 
        bottom: 0; 
        left: 0; 
        right: 0; 
        display: flex; 
        flex-direction: column; 
        align-items: center; 
    }
}

.msg {
    min-width: 250px;
    margin-top: 10px;
    padding: 15px 20px;
    color: #fff;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    pointer-events: auto; /* Riattiva il click per chiuderlo */
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-align: center;
    animation: msgSlideIn 0.3s ease-out;
    transition: all 0.3s ease;
}
.msg.hiding {
    animation: msgSlideOut 0.3s forwards;
}

.msg.success { background-color: #28a745; }
.msg.error { background-color: #dc3545; }

@keyframes msgSlideIn {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes msgSlideOut {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(100px); opacity: 0; }
}