
/* Nasconde l'occhio di Edge/IE per input password */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}
/* Uniforma il bordo e il colore del bottone all'input */
.input-group .btn-outline-secondary {
    border-color: #ced4da !important;   /* colore bordo di .form-control */
    color: #495057 !important;           /* colore testo di .form-control */
    background: #fff !important;         /* sfondo bianco come l'input */
}
.input-group .btn-outline-secondary:hover,
.input-group .btn-outline-secondary:focus {
    background: #e9ecef !important;      /* come l'input in focus */
    color: #212529 !important;
    border-color: #80bdff !important;    /* come l'input in focus */
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.custom-control.custom-switch .custom-control-label::before {
    background-color: #e9ecef;
    border-color: #ced4da;
}
.custom-control.custom-switch .custom-control-input:checked~.custom-control-label::before {
    background-color: #007bff;
    border-color: #007bff;
}
.custom-control.custom-switch .custom-control-input:focus~.custom-control-label::before {
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}
#loading-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 9999;
    background: rgba(255,255,255,0.85);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
#loading-overlay.show {
    display: flex !important; /* visibile e centrato */
}
.fade-in {
    animation: fadeIn 1s;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px);}
    to { opacity: 1; transform: translateY(0);}
}
.card {
    margin: 0 auto;
    float: none;
    margin-bottom: 10px;
    width: 95%;
    border-radius: 16px;
    transition: 0.3s;
    box-shadow: 0 8px 24px 0 rgba(0,0,0,0.13), 0 12px 40px 0 rgba(0,0,0,0.09);
    background: #fff;
}
.card:hover, .card:focus {
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.18), 0 12px 40px 0 rgba(0,0,0,0.15);
}
.btn-mfa {
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 1rem 4rem;
    margin: 0.5rem 0;
    transition: box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.btn-mfa:active {
    transform: translateY(2px) scale(0.98);
}
.mfa-badge {
    font-size: 1rem;
    margin-left: 0.5rem;
    vertical-align: middle;
}
@media (max-width: 600px) {
    .card { width: 100%; }
    .main-logo { height: 120px; }
}
.main-logo {
    height: 180px;
    margin-bottom: 1rem;
}