* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background-color: #f4f4f4;
}

.login-container {
  display: flex;
  height: 100vh;
}

/* ===== PANEL IZQUIERDO ===== */
.left-panel {
  flex: 1;
  background-color: #1a4d3a; /* verde oscuro */
  color: #ffffff;
  position: relative;
  padding: 24px 40px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  border-radius: 10px;
  padding: 0px 14px;
  z-index: 2;
  align-self: flex-start;
  flex-shrink: 0;
}

.logo-img {
  height: 120px;
  width: auto;
  display: block;
}

.welcome-text {
  margin-top: 16px;
  z-index: 2;
  flex-shrink: 0;
}

.welcome-text h1 {
  font-size: 38px;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
}

.welcome-text h1.highlight {
  color: #d4a017; /* dorado/mostaza */
  font-weight: 700;
}

.background-image {
  margin-top: 16px;
  flex: 1;
  min-height: 0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.background-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Degradado para fundir la imagen con el verde del panel, de arriba hacia abajo */
.background-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, rgba(26, 77, 58, 0) 0%, rgba(26, 77, 58, 0.85) 80%, rgba(26, 77, 58, 1) 100%);
  pointer-events: none;
}

/* ===== PANEL DERECHO ===== */
.right-panel {
  flex: 1;
  background-color: #fafafa;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 40px;
  overflow: hidden;
}

.login-card {
  background-color: #ffffff;
  width: 100%;
  max-width: 420px;
  padding: 50px 40px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.login-card h2 {
  text-align: center;
  color: #1a4d3a;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
}

.login-card label {
  display: block;
  font-size: 14px;
  color: #333333;
  margin-bottom: 8px;
}

.input-group {
  position: relative;
  margin-bottom: 20px;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #999999;
  display: flex;
  align-items: center;
}

.input-icon svg {
  width: 18px;
  height: 18px;
}

.input-group input {
  width: 100%;
  padding: 14px 14px 14px 42px;
  border: 1.5px solid #cccccc;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease;
}

.input-group input:focus {
  border-color: #1a4d3a;
}

.btn-login {
  width: 100%;
  padding: 14px;
  background-color: #1a4d3a;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.2s ease;
}

.btn-login:hover {
  background-color: #143a2b;
}

.links {
  text-align: center;
  margin-top: 24px;
}

.links a {
  display: block;
  color: #333333;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 12px;
}

.links a:hover {
  text-decoration: underline;
}

.links p {
  font-size: 14px;
  color: #333333;
}

.terms {
  position: absolute;
  bottom: 20px;
  right: 40px;
}

.terms a {
  font-size: 13px;
  color: #333333;
  text-decoration: underline;
}

/* ===== RESPONSIVE - TABLET (hasta 900px) ===== */
@media (max-width: 900px) {
  .login-container {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }

  .left-panel {
    flex: none;
    padding: 24px 32px;
  }

  .logo-img {
    height: 80px;
  }

  .welcome-text {
    margin-top: 14px;
  }

  .welcome-text h1 {
    font-size: 30px;
  }

  .background-image {
    flex: none;
    height: 280px;
    margin-top: 20px;
  }

  .right-panel {
    flex: none;
    padding: 40px 24px 90px;
  }

  .login-card {
    padding: 40px 28px;
  }

  .terms {
    position: static;
    text-align: center;
    margin-top: 24px;
  }
}

/* ===== RESPONSIVE - CELULAR (hasta 480px) ===== */
@media (max-width: 480px) {
  .left-panel {
    padding: 20px 20px;
  }

  .logo {
    padding: 0px 10px;
  }

  .logo-img {
    height: 60px;
  }

  .welcome-text h1 {
    font-size: 24px;
  }

  .background-image {
    height: 200px;
    margin-top: 16px;
    border-radius: 10px;
  }

  .right-panel {
    padding: 30px 16px 70px;
  }

  .login-card {
    padding: 32px 20px;
    border-radius: 12px;
  }

  .login-card h2 {
    font-size: 22px;
    margin-bottom: 22px;
  }

  .login-card label {
    font-size: 13px;
  }

  .input-group input {
    padding: 12px 12px 12px 38px;
    font-size: 14px;
  }

  .btn-login {
    padding: 12px;
    font-size: 15px;
  }

  .links a,
  .links p {
    font-size: 13px;
  }
}
  .error-message{
    color: red;
    font-weight: bold;
  }