/* base.css */

body,
html {
  height: 100%;
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #ffffff;
  color: #333;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.main-wrapper {
  display: flex;
  flex-direction: row;
  height: 100vh;
  width: 100%;
}

/* --- SEZIONE LANDING (SINISTRA) --- */
.landing-section {
  flex: 1.4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 40px;
  border-right: 1px solid #f0f0f0;
  text-align: center;
}

.landing-content {
  max-width: 650px;
}

/* Layout Affiancato Logo + Box */
.header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-bottom: 50px;
  width: 100%;
}

.auth-logo {
  max-width: 180px;
  height: auto;
  mix-blend-mode: multiply;
  display: block;
}

.author-box {
  text-align: left;
  font-weight: 300;
  font-size: 1.2rem;
  /* Font grande come richiesto */
  line-height: 1.3;
  color: #333;
  max-width: 350px;
  /* Spezza il testo su più righe */
  padding: 10px 20px;
  border-left: 3px solid #000;
  /* Box definito dal bordo sinistro */
}

.mission {
  font-weight: 200;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: 1.2rem;
  margin-bottom: 60px;
  width: 100%;
}

.feature-item {
  margin-bottom: 35px;
  text-align: left;
}

.feature-title {
  font-weight: 400;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  display: block;
  color: #000;
}

.feature-text {
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #555;
}

.closing-statement {
  margin-top: 50px;
  font-weight: 200;
  font-size: 2.5rem;
  /* Font molto grande */
  letter-spacing: -1px;
  color: #000;
}

/* --- SEZIONE AUTH (DESTRA) - Preserva stili originali --- */
.auth-section {
  flex: 0.6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: #fafafa;
}

.auth-container {
  width: 100%;
  max-width: 320px;
  /* Ripristinato da originale */
  padding: 40px;
  text-align: center;
}

/* h3 del credito originale nel login */
.auth-container h3 {
  font-weight: 300;
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 5px;
}

h2#auth-title {
  font-weight: 200;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 30px;
  font-size: 1.2rem;
  /* Allineato a originale */
}

input {
  width: 100%;
  padding: 12px 0;
  margin: 10px 0;
  border: none;
  border-bottom: 1px solid #e0e0e0;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s;
}

input:focus {
  border-bottom: 1px solid #000;
}

button {
  width: 100%;
  padding: 12px;
  margin-top: 30px;
  background: none;
  border: 1px solid #000;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s;
}

button:hover {
  background: #000;
  color: #fff;
}

.toggle-link {
  margin-top: 20px;
  font-size: 0.75rem;
  font-weight: 300;
  color: #888;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#message {
  height: 20px;
  font-size: 0.7rem;
  margin-top: 15px;
  font-weight: 300;
}

h5 {
  font-weight: 300;
  /* Leggermente più leggibile */
  font-size: 0.85rem;
  /* Aumentato da 0.65rem */
  color: #888;
  /* Grigio un po' più scuro per contrasto */
  margin-top: 40px;
}

h5 a {
  color: #444;
  /* Link più evidente */
  text-decoration: underline;
  /* Sottolineatura opzionale per chiarezza */
}


/* RESPONSIVE PER MOBILE */
@media (max-width: 900px) {
  .main-wrapper {
    flex-direction: column;
    overflow-y: auto;
    height: auto;
  }

  .landing-section {
    flex: none;
    padding: 60px 20px;
    border-right: none;
  }

  .auth-section {
    flex: none;
    padding: 60px 20px;
    border-top: 1px solid #f0f0f0;
  }

  .header-top {
    flex-direction: column;
    gap: 15px;
  }

  .author-box {
    border-left: none;
    border-top: 2px solid #000;
    padding: 15px 0;
    text-align: center;
  }

  body,
  html {
    overflow: auto;
  }
}