* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
}

html, body {
  height: 100%;
}

/* FONDO GENERAL */
body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 32px;

  background:
    radial-gradient(circle at center,
      #fffdf6 0%,
      #f5f1e8 55%,
      #e8e4da 100%
    );
}

/* CONTENEDOR */
.page-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.login-layout {
  width: 100%;
  max-width: 1100px;
  min-height: 620px;
  display: flex;
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

/* PANEL IZQUIERDO */
.visual-panel {
  width: 56%;
  position: relative;
  background:
    linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.25)),
    url('https://www.tcsanantonio.cl/wp-content/uploads/2026/03/carretera-home-copy.webp') no-repeat center center / cover;
}

/* OVERLAY */
.visual-overlay {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-start; /* 👈 ARRIBA */
  justify-content: center;
  padding: 42px 36px;
}

/* CONTENIDO IZQUIERDO */
.visual-content {
  width: 100%;
  max-width: 560px;
  text-align: center;
}

/* TITULO IZQUIERDO */
.visual-content h1 {
  max-width: 520px;
  margin: 0 auto;
  color: #e8e6df; /* gris cálido */
  font-size: 42px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.35);
}

/* 🔥 CLAVE: FORZAR 2 LINEAS */
.visual-content h1 span {
  white-space: nowrap;
}

/* PANEL DERECHO */
.form-panel {
  width: 44%;
  background: #f9f9f9;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 50px 40px;
}

.form-inner {
  width: 100%;
  max-width: 380px;
}

/* TITULO DERECHO */
.form-title {
  font-size: 36px;
  font-weight: 800;
  color: #1f2d1f;
  text-align: center;
  margin-bottom: 40px;
}

/* FORM */
.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: #2f3a2f;
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  height: 48px;
  border: none;
  border-bottom: 2px solid #79c99b;
  background: transparent;
  font-size: 16px;
  outline: none;
  transition: 0.2s;
}

.form-group input:focus {
  border-bottom-color: #0b8f33;
}

/* BOTON */
.btn-login {
  width: 100%;
  height: 50px;
  margin-top: 10px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, #0b8f33, #087529);
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.btn-login:hover {
  box-shadow: 0 12px 20px rgba(8,117,41,0.25);
}

/* ERROR */
.error-message {
  margin-top: 12px;
  color: #c0392b;
  font-size: 14px;
  text-align: center;
}

/* FOOTER */
.footer {
  margin-top: 20px;
  font-size: 13px;
  color: #777;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .login-layout {
    flex-direction: column;
  }

  .visual-panel,
  .form-panel {
    width: 100%;
  }

  .visual-panel {
    min-height: 220px;
  }

  .visual-content h1 {
    font-size: 30px;
  }
}