:root {
  --verde-principal: #329540;
  --verde-oscuro: #164a49;
  --blanco: #fff;
  --negro: #000;
  --gris-claro: #f0f0f0;
  --gris-medio: #d3d3d3;
  --verde-claro: #90ee90;
  --sombra-caja: rgba(0, 0, 0, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: linear-gradient(#bebebe, #9ba8ab);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.container {
  width: 750px;
  height: 500px;
  background-color: #e4e4e5;
  border-radius: 20px;
  box-shadow: 0 5px 15px #5d5e61;
  overflow: hidden;
  display: flex;
}

/* Formulario de login */
.login-form {
  width: 55%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-header {
  text-align: center;
  margin-bottom: 30px;
}

.img-usuario {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}

h1 {
  color: var(--negro);
  font-size: 30px;
  margin-bottom: 10px;
}

/* Estilos para los campos del formulario */
label {
  position: relative;
  display: block;
  margin-bottom: 20px;
}

label i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--negro);
}

input {
  width: 100%;
  padding: 12px 12px 12px 40px;
  border: 2px solid var(--negro);
  border-radius: 15px;
  background-color: var(--gris-claro);
  font-size: 14px;
}

/* Contraseña */
.password-container {
  position: relative;
}

.toggle-password {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--negro);
}

/* Botón submit */
button[type="submit"] {
  width: 100%;
  padding: 12px;
  background-color: var(--verde-principal);
  color: var(--blanco);
  border: none;
  border-radius: 15px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 10px;
}

button[type="submit"]:hover {
  background-color: var(--verde-oscuro);
}

/* Panel verde */
.welcome-panel {
  width: 50%;
  background: linear-gradient(
    to right,
    var(--verde-oscuro),
    var(--verde-principal)
  );
  color: var(--blanco);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 30px;
  border-radius: 35% 0 0 20%;
}

.logo-container {
  margin-top: -30px;
  text-align: center;
  margin-bottom: 15px;
}

.panel-logo {
  max-width: 100px;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.panel-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.welcome-panel h1 {
  color: var(--blanco);
  font-size: 28px;
  margin-bottom: 20px;
}

.welcome-panel p {
  margin-bottom: 30px;
  font-size: 14px;
  max-width: 80%;
}

.register-btn {
  background-color: transparent;
  color: var(--blanco);
  border: 2px solid var(--blanco);
  padding: 10px 30px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.register-btn:hover {
  background-color: var(--blanco);
  color: var(--verde-oscuro);
}

/* Enlaces para móviles */
.mobile-links {
  display: none;
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
}

.mobile-links a {
  color: var(--verde-oscuro);
  font-weight: bold;
  text-decoration: none;
}

.mobile-links a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 700px) {
  .container {
    width: 95%;
    height: auto;
    flex-direction: column;
  }

  .login-form,
  .welcome-panel {
    width: 100%;
    padding: 30px;
  }

  .welcome-panel {
    display: none;
  }

  .mobile-links {
    display: block;
  }
}

@media (max-width: 480px) {
  .img-usuario {
    width: 80px;
    height: 80px;
  }

  input {
    padding: 10px 10px 10px 35px;
  }

  .login-form {
    padding: 25px;
  }
}
