/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body.fondo {
  background-image: url('./img/fondo.jpeg');
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

/* Contenedor de login dividido en 2 */
.login-container {
  width: 900px;
  height: 500px;
  display: flex;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

/* Lado izquierdo - formulario */
.login-left {
  width: 50%;
  background: #fff;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.login-left h1 {
  font-size: 28px;
  margin-bottom: 30px;
}

.logo-container {
  text-align: center;
  margin-bottom: 20px;
}

.logo-container img {
  width: 50px;
  align-items: center;
  justify-content: center;
  
}

.login-left form {
  display: flex;
  flex-direction: column;
}

.login-left label {
  font-size: 14px;
  margin-bottom: 5px;
  color: #333;
}

.login-left input[type="text"],
.login-left input[type="password"] {
  padding: 10px;
  border: none;
  border-bottom: 2px solid #ccc;
  margin-bottom: 20px;
  transition: border-color 0.3s;
  outline: none;
}

.login-left input[type="text"]:focus,
.login-left input[type="password"]:focus {
  border-color: #059600;
}

.login-left input[type="submit"] {
  background-color: #059600;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}

.login-left input[type="submit"]:hover {
  background-color: #059600;
}

.forgot-pass {
  text-align: right;
  font-size: 12px;
  margin-bottom: 15px;
}

.forgot-pass a {
  color: #007bff;
  text-decoration: none;
}

.forgot-pass a:hover {
  text-decoration: underline;
}

.error {
  color: red;
  font-weight: bold;
  margin-bottom: 15px;
}

/* Lado derecho - imagen con overlay de bienvenida */
.login-right {
  width: 50%;
  background: url('./93c5f0d9-5e01-461d-9874-6dace1eca284.png') center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.login-right .overlay {
  background: rgba(2, 145, 38, 0.425);
  width: 100%;
  height: 100%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

.login-right .overlay h2 {
  font-size: 24px;
  font-weight: bold;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .login-container {
    flex-direction: column;
    width: 90%;
    height: auto;
  }

  .login-right,
  .login-left {
    width: 100%;
    height: auto;
  }

  .login-right {
    background-size: cover;
    min-height: 200px;
  }

  .login-right .overlay {
    padding: 55px;
  }

  .login-right .overlay h2 {
    font-size: 18px;
  }

  .login-left {
    padding: 30px 20px;
  }

  .login-left h1 {
    font-size: 24px;
    text-align: center;
  }

  .login-left form {
    width: 100%;
  }

  .login-left input[type="submit"] {
    width: 100%;
  }

  .forgot-pass {
    text-align: center;
  }
}


