/* Importar variables de color del CSS principal */
@import url("../main.css");

/* Estilos específicos para la página de login */
body {
  background: var(--950);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  padding: 20px;
}

.login-container {
  background: var(--white);
  border: 2px solid var(--200);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 40px;
  width: 100%;
  max-width: 430px;
  text-align: center;
}

.login-container h1 {
  color: var(--900);
  font-size: 2.8rem;
  margin-bottom: 30px;
  font-weight: bold;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  position: relative;
  text-align: left;
}

.form-group input {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid var(--200);
  border-radius: 10px;
  font-size: 1.6rem;
  background-color: var(--50);
  color: var(--950);
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-group input::placeholder {
  color: var(--600);
  font-size: 1.4rem;
}

.form-group input:focus {
  outline: none;
  border-color: var(--600);
  background-color: white;
  box-shadow: 0 0 0 3px rgba(62, 145, 255, 0.1);
}

.login-btn {
  background: var(--700);
  color: var(--white);
  padding: 15px 30px;
  border: none;
  border-radius: 10px;
  font-size: 1.8rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.login-btn:hover {
  background: var(--800);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.login-btn:active {
  transform: translateY(0);
}

.back-btn {
  display: inline-block;
  background: transparent;
  color: var(--700);
  padding: 15px 30px;
  border: 2px solid var(--400);
  border-radius: 10px;
  font-size: 1.8rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
}

.back-btn:hover {
  background: var(--400);
  color: var(--white);
  transform: translateY(-2px);
}

/* Logo del laboratorio */
.logo-section {
  margin-bottom: 30px;
}

.logo-section img {
  width: 80px;
  height: auto;
  margin-bottom: 20px;
}

/* Mensaje de error (para futuras implementaciones) */
.error-message {
  background-color: #ffebee;
  color: #c62828;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 20px;
  font-size: 1.4rem;
  border-left: 4px solid #c62828;
}

/* Responsive design */
@media (max-width: 480px) {
  .login-container {
    padding: 30px 20px;
    margin: 10px;
  }
  
  .login-container h1 {
    font-size: 2.4rem;
  }
  
  .form-group input {
    padding: 12px 15px;
    font-size: 1.4rem;
  }
  
  .login-btn {
    padding: 12px 25px;
    font-size: 1.6rem;
  }
}

/* Animación de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-container {
  animation: fadeInUp 0.6s ease-out;
}

/* Efecto de hover en los inputs */
.form-group input:hover {
  border-color: var(--300);
}

/* Estilo para inputs con contenido */
.form-group input:not(:placeholder-shown) {
  background-color: white;
  border-color: var(--400);
}
