* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Lato", sans-serif;
}

html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  background-color: #171717;
}

.navbar {
  position: absolute;
  top: 20px;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 10px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;

  color: white;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 65px;
  height: 65px;
  border-radius: 50%;
}

.nav-home-text {
  font-size: 14px;
  color: white;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  position: relative;
  font-size: 14px;
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -4px;
  width: 20px; /* Lunghezza della linea */
  height: 1px;
  background-color: white;
  border-radius: 1px;
}

.nav-button {
  background-color: white;
  color: black;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}

.nav-button:hover {
  background-color: #ddd;
}

.nav-button {
  background-color: white;
  color: black;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.nav-button:hover {
  background-color: #ddd;
}

.container {
  flex: 1;
  display: flex;
  background-image: url("img/sfondo-sfumato.webp");
  background-size: cover;
  background-position: center;
}

.left-column {
  background-image: url("img/7po-hero-image.webp");
  background-size: contain;
  background-position: bottom left;
  background-repeat: no-repeat;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.right-column {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.form-container {
  padding: 40px;
  border-radius: 12px;
  color: white;
  width: 100%;
  max-width: 400px;
}

h2 {
  font-size: 24px;
  margin-bottom: 10px;
  text-align: center;
}

form input {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
}

/* Contenitore checkbox + link */
.options {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 14px;
  margin-bottom: 20px;
  gap: 8px;
}

/* Link password coerente */
.options a {
  color: #89c5ff;
  text-decoration: none;
  font-weight: 400;
}

.options a:hover {
  text-decoration: underline;
}

/* Etichetta checkbox */
.button-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: white;
  cursor: pointer;
  user-select: none;
  margin-top: 15px;
}

.button-checkbox input[type="checkbox"] {
  width: 10px;
  height: 10px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 1px solid white;
  border-radius: 4px;
  background-color: transparent;
  position: relative;
  display: inline-block;
  cursor: pointer;
  background-size: 70%;
  background-repeat: no-repeat;
  background-position: center;
  padding: 7px;
}

/* Hover effetto */
.button-checkbox input[type="checkbox"]:hover {
  border-color: #89c5ff;
}

/* Spunta quando selezionato */
.button-checkbox input[type="checkbox"]:checked {
  background-color: white;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='black' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 10.8L3.2 8l-1.2 1.2L6 13.2l8-8-1.2-1.2L6 10.8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

.password-container {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  margin-top: 10px;
}
.password-container input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px;
  font-size: 14px;
  background: transparent;
}
.password-container span {
  padding: 0 10px;
  cursor: pointer;
  color: #999;
  font-size: 14px;
}

button {
  width: 100%;
  padding: 12px;
  background: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  color: black;
  font-size: 15px;
}

.social {
  text-align: center;
  margin-top: 50px;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #ccc;
  font-size: 14px;
  margin: 30px 0;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #666;
  margin: 0 10px;
}

.social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.icon-container {
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}

.register {
  font-size: 14px;
  margin-top: 50px;
  text-align: center;
}

.register a {
  font-weight: bold;
  color: white;
  text-decoration: underline;
}

.footer-links {
  margin-top: -20px;
  margin-bottom: 20px;
  text-align: center;
  color: #ccc;
  background: transparent;
}

.footer-links .line {
  display: block;
  width: 60px;
  height: 1px;
  background-color: #444;
  margin: 0 auto 10px auto;
  opacity: 0.5;
}

.footer-links .privacy-cookie {
  font-size: 13px;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
  margin: 0 5px;
}

.footer-links a:hover {
  text-decoration: underline;
}

.error-text {
  color: red;
}

@media (max-width: 1200px) {
  .left-column {
    display: none;
  }
}

@media (max-width: 768px) {
  .left-column {
    display: none;
  }
  .navbar {
    display: none;
  }

  .container {
    flex-direction: column;
  }

  .right-column {
    width: 100%;
  }
}
