/* Corpo della pagina */
body {
    background-color: rgb(235, 237, 238) !important;
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    font-size: 14px;
    line-height: 20px;
}

/* Container principale */
.container-fluid {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh; /* Altezza minima uguale alla finestra */
    padding: 16px;
}

/* Card principale con altezza e larghezza minima */
.card-easyfatt {
    width: 100%;
    max-width: 420px; /* Larghezza massima */
    min-width: 350px; /* Larghezza minima per coerenza */
    /*
    min-height: 450px; !* Altezza minima *!
    */
    background-color: #ffffff;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-top: 8px solid rgb(13, 151, 213);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 16px;
}
/* Rimuove margini extra */
.card-easyfatt .btn-primary {
    margin-bottom: 0; /* Nessuno spazio extra sotto */
}
.btn.btn-primary:hover:not(:disabled){
    color: rgb(235, 237, 238)!important;
    background-color: rgb(10, 121, 168)!important;
    border-color: rgb(10, 121, 168)!important;
    min-width: auto;
}
.card-easyfatt .form-group {
    margin-bottom: 10px; /* Riduce lo spazio tra i gruppi */
}

/* Rimuove padding o margini non necessari */
#password_recovery {
    padding-bottom: 0;
}

/* Titoli */
.titolo-easyfatt-new {
    margin-top: -20px;
    height: 30px;
    text-size-adjust: 100%;
    font-family: "Inter", sans-serif !important;
    font-size: 20px;
    font-weight: 500!important;
    line-height: 30px;
    text-align: center;
    color: rgb(13, 151, 213);
    unicode-bidi: isolate !important;
    box-sizing: content-box !important;
    transition: none !important;
    text-rendering: optimizelegibility !important;
    -webkit-font-smoothing: subpixel-antialiased !important;
}


/* Paragrafi */
p {
    font-family: "Inter", sans-serif;
    font-size: 12px;
    line-height: 18px;
    color: rgb(51, 51, 51);
    cursor: default !important;
    font-weight: 400 !important;
    display: block !important;
    margin-bottom: 0px !important;
}

p span {
    font-weight: 600;
    color: rgb(13, 151, 213);
}

/* Input */
input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(9, 30, 66, 0.16);
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 10px;
}
.input-group {
    display: flex;
    align-items: center; /* Allinea verticalmente icona e input */
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    border-color: rgb(13, 151, 213);
    box-shadow: 0 0 4px rgba(13, 151, 213, 0.4);
    outline: none;
}
/* Stile globale per tutte le label */
label {
    font-size: 12px;
    line-height: 18px;
    color: rgb(51, 51, 51);
    cursor: default !important;
    font-weight: 400 !important;
    display: block !important;
    margin-bottom: 0px !important;
}

/* Pulsanti */
.btn-primary,
.btn-fatture {
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    border: none;
    border-radius: 4px;
    color: #ffffff;
    background-color: rgb(13, 151, 213);
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin-top: 20px;
}

.btn.btn-primary:hover,
.btn-fatture:hover {
    color: rgb(235, 237, 238);
    background-color: rgb(10, 121, 168);
    border-color: rgb(10, 121, 168);
}
.btn.fatture:active{
    background-color: rgb(6, 71, 99)!important;

}

.passwordRecovery .btn-primary:hover{
    color: rgb(235, 237, 238)!important;
    background-color: rgb(10, 121, 168)!important;
    border-color: rgb(10, 121, 168)!important;
}
/* Link */
a {
    color: rgb(13, 151, 213);
    text-decoration: none;
    cursor: pointer;
    font-weight: 500;
    transition: color 0.3s ease;
}
.scritta-password{
    text-decoration: none !important;
    outline: none !important;
    color: #0088cc!important;
    cursor:pointer!important;
}
.scritta-password:hover, scritta-password:focus
 {
    color: #005580!important;
}

a:hover {
    text-decoration: underline;
    color: rgb(10, 121, 168);
}

.link-card:hover,
.link-card:focus {
    color: rgb(10, 121, 168);
}

/* Footer */
.footer-easyfatt {
    background-color: rgb(235, 237, 238);
    padding: 20px 0;
    color: #555;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
    width: 100%;
}

.links-footer {
    margin-bottom: 10px;
}

.footer-link {
    margin: 0 10px;
    text-decoration: none !important;
    outline: none !important;
    color: #0088cc!important;
    cursor:pointer!important;
}

.footer-link:hover {
    text-decoration: underline;
    color: #005580!important;
}

/* Layout Flex */
.d-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}
.toggle-password {
    position: absolute;
    right: 12px; /* Sposta l'occhio leggermente a sinistra per non toccare il bordo */
    top: 65%;
    transform: translateY(-50%); /* Lo centra verticalmente */
    cursor: pointer;
    color: rgb(51, 51, 51);
}
.toggle-pw-2{
    top: 50%!important;
}
.fa-eye{
    font-size:14px!important;/* Rende l'occhio più piccolo */
}
.fa-eye-slash{
    font-size:14px!important;/* Rende l'occhio più piccolo */

}
/* Transizioni generiche */
* {
    transition: all 0.2s ease-in-out;
}
#pw-eye-input .toggle-password {
    top:50%!important;
}
.has-error-login{
    font-size: 12px;
    font-weight: 400;
    margin-top: 3px;
    color: rgb(200, 22, 3);
    background: rgb(251, 231, 226);
    border-radius: 4px;
    padding: 4px 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 18px;
}
