/* GENERALE */
html, body {
    height: 100%;
    margin: 0;
}

body {
    font-family: var(--font-family-poppins);
    display: flex;
    flex-direction: column;
}

hr {
    border: 1px solid var(--color-secondary);
}

.container-fluid{
    height: 100vh;
}

main.full-height-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.login-wrapper {
    min-width: 500px;
    min-height: 400px;
}

.bg-igea{
    background-color: var(--color-primary)!important;
    padding: 2rem;
}

.logo-igea {
    width: 180px;
    height: auto;
}

.logo-footer {
    width: 80px;
    margin: 0 15px;
}

.logo-footer-maktech {
    height: 50px;
    margin: 0 15px;
}

.logo-footer-igea {
    height: 50px;
    margin-left: 10px;
}

.checkbox label, .checkbox input[type="checkbox"] {
    cursor: pointer;
}

/* CUSTOM CHECKBOX CON SPUNTA BIANCA */
.checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--color-secondary);
    border-radius: 4px;
    background: var(--white);
    outline: none;
    cursor: pointer;
    position: relative;
    vertical-align: middle;
    transition: background 0.2s, border-color 0.2s;
}

.checkbox input[type="checkbox"]:checked {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
}

.checkbox input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    pointer-events: none;
}

footer p {
    letter-spacing: 0.05em;
}

footer {
    padding: 1rem 0;
    background-color: var(--color-primary)!important;
}

/* BOTTONE PERSONALIZZATO */
.btn-accedi {
    background-color: var(--color-secondary) !important;
    border-color: var(--color-secondary) !important;
    color: var(--white) !important;
}


/* Responsive */
@media (max-width: 600px) {
  /* Annulla height 100vh sul container esterno */
  .container-fluid {
    height: auto !important;
  }

  /* Rimuovi l’altezza fissa e aggiungi un po’ di padding verticale */
  main.full-height-wrapper {
    height: auto !important;
    padding: 1.5rem !important;
  }

  /* Rimuovi margini di Bootstrap e riduci logo/form spacing */
  .logo-igea.mb-5 {
    margin-bottom: 1rem !important;
    width: 80px !important;
    height: 80px !important;
  }

  /* Form wrapper più snella */
  .login-wrapper {
    min-width: auto !important;
    min-height: auto !important;
    padding: 0 !important;
  }

  /* Riduci padding interno del box colorato */
  .bg-igea {
    padding: 1rem !important;
  }
}
