/* base.css */

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

.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%;
}

.build-version-tag {
  text-align: center;
  font-size: 0.65rem;
  color: #888;
  margin-top: -45px;
  margin-bottom: 35px;
}

.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 */
}


/* --- OCCHIETTO PASSWORD --- */
.password-wrapper {
  position: relative;
  width: 100%;
}

.password-wrapper input {
  padding-right: 1.8rem;
  box-sizing: border-box;
  /* ← aggiunta */
}

.forgot-link {
  text-align: right;
  font-size: 0.7rem;
  font-weight: 300;
  color: #aaa;
  cursor: pointer;
  margin-top: 6px;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}

.forgot-link:hover {
  color: #333;
}


.eye-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  width: auto;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: #aaa;
  display: flex;
  align-items: center;
}

.eye-btn:hover {
  background: none;
  color: #333;
}

/* --- GOOGLE AUTH --- */
.auth-divider {
  display: flex;
  align-items: center;
  margin: 20px 0 0;
  color: #ccc;
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e0e0e0;
}

.auth-divider span {
  padding: 0 10px;
}

#google-button {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e0e0e0;
  color: #333;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
}

#google-button:hover {
  background: #f5f5f5;
  color: #333;
  border-color: #ccc;
}

@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;
  }
}

/* --- GUIDA LINK --- */
.guida-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-size: 0.72rem;
  font-weight: 300;
  color: #888;
  text-decoration: none;
  letter-spacing: 0.4px;
  transition: color 0.2s;
}

.guida-link:hover {
  color: #000;
}

.guida-badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: #fff;
  background: #000;
  padding: 2px 6px;
  border-radius: 2px;
}

/* --- SPLIT LAYOUT (login page) --- */
.split-layout {
  display: flex;
  width: 100%;
  height: 100vh;
}

.left-panel {
  flex: 0.7;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fafafa;
}

.right-panel {
  flex: 0.3;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #6bb2d4;
  color: #fff;
  padding: 40px;
  text-align: center;
}

.right-panel h3 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #6bb2d4;
  background: #fff;
  display: inline-block;
  padding: 8px 18px;
  border-radius: 2px;
  margin-bottom: 30px;
}

.guide-cta {
  display: inline-block;
  width: auto;
  margin-top: 0;
  text-decoration: none;
  color: #fff;
  border: 2px solid #fff;
  padding: 20px 40px;
  font-size: 1.2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.3s;
}

.guide-cta:hover {
  background: #fff;
  color: #000;
}

#toggle-auth {
  margin-bottom: 20px;
}

.auth-container h5:first-of-type {
  margin-top: 20px;
}

@media (max-width: 768px) {
  .split-layout {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }

  .left-panel {
    flex: none;
    padding: 40px 20px;
  }

  .right-panel {
    flex: none;
    padding: 30px 20px;
  }
}