/* ================================================
   SFONDO GLOBALE (il resto del sito lo eredita)
================================================ */
body {
  background-color: #111217;
  color: white;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  box-sizing: border-box;
}


/* ================================================
   LOGIN — WRAPPER CENTRALE
================================================ */
.login-box h1 {
   font-size: 26px;
  margin-bottom: 25px;
  text-align: center;
}
.login-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}

/* BOX LOGIN */
.login-box {
  width: 380px;
  text-align: left;
}

/* TITOLO LOGIN */
.login-box h2 {
  font-size: 26px;
  margin-bottom: 25px;
  text-align: center;
}

/* LABEL LOGIN */
.login-box label {
  display: block;
  margin-bottom: 6px;
  color: #c6c6c6;
}

/* INPUT LOGIN */
.login-box input {
  width: 100%;
  padding: 12px;
  border: 1px solid #333;
  background-color: #1b1d23;
  border-radius: 6px;
  color: white;
  margin-bottom: 15px;
  box-sizing: border-box;
}

.login-box input::placeholder {
  color: #777;
}

.login-box input:focus {
  border-color: #4c6ef5;
  outline: none;
  box-shadow: 0 0 4px rgba(76,110,245,0.6);
}

/* BOTTONE LOGIN */
.login-btn {
  width: 100%;
  background-color: #4c6ef5;
  border: none;
  padding: 12px;
  border-radius: 6px;
  color: white;
  font-size: 15px;
  cursor: pointer;
  margin-top: 5px;
}

.login-btn:hover {
  background-color: #3b5bdb;
}

/* DIVISORE */
.divider {
  text-align: center;
  margin: 20px 0;
  color: #888;
}

/* LINK "REGISTRATI" */
.register-text {
  text-align: center;
  color: #888;
}

.register-text span {
  color: #4c6ef5;
  cursor: pointer;
  margin-left: 5px;
}

.register-text span:hover {
  text-decoration: underline;
}

/* ================================================
   POPUP REGISTRAZIONE


/* SFONDO OSCURATO */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* CONTENITORE POPUP */
.modal-content {
  position: relative;
  background-color: #1a1b23;
  padding: 30px;
  border-radius: 12px;
  width: 400px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  color: white;
}

/* TITOLO POPUP */
.popup-title {
  margin-bottom: 20px;
  text-align: center;
  font-size: 22px;
}

/* LABEL POPUP */
.modal-content label {
  font-size: 14px;
  color: #c6c6c6;
  margin-top: 12px;
  margin-bottom: 6px;
  display: block;
}

/* INPUT POPUP */
.modal-content input {
  width: 100%;
  padding: 12px;
  background-color: #292b33;
  border: 1px solid #333;
  border-radius: 6px;
  color: white;
  margin-bottom: 12px;
}

.modal-content input::placeholder {
  color: #777;
}

.modal-content input:focus {
  border-color: #4c6ef5;
  outline: none;
  box-shadow: 0 0 4px rgba(76,110,245,0.6);
}

/* STILE ERRORE INPUT */ 
.error {
  border: 2px solid #ff4d4d !important;
  box-shadow: 0 0 6px rgba(255, 0, 0, 0.5);
}


/* BOTTONE REGISTRAZIONE */
.submit-btn {
  width: 100%;
  background-color: #4c6ef5;
  color: white;
  padding: 12px;
  border-radius: 6px;
  border: none;
  font-size: 15px;
  cursor: pointer;
  margin-top: 10px;
}

.submit-btn:hover {
  background-color: #3b5bdb;
}

/* X CHIUSURA POPUP */
.close-x {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 26px;
  background: none;
  border: none;
  color: #888;
  cursor: pointer;
}

.close-x:hover {
  color: white;
}
