/* ------------------- Estilos base ------------------- */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

.container {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: auto;
}

.login-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.login-form h1 {
  margin-bottom: 2rem;
  font-size: 1.8rem;
  color: #333;
  text-align: center;
}

.image-container {
  text-align: center;
}

.img {
  width: 70%;
}

.img {
  transition: filter 0.3s ease;
}

html:not(.dark-mode) .img {
  filter: brightness(0) saturate(100%) invert(22%) sepia(85%) saturate(4000%)
    hue-rotate(215deg) brightness(80%) contrast(95%);
}


.input-group {
  width: 80%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.input-group label {
  color: #666;
  font-weight: bold;
}

.input-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

.input-group input:focus {
  border-color: #122173;
  outline: none;
}

button {
  width: 100%;
  padding: 0.75rem;
  border: none;
  background: #0d1544;
  color: #fff;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  box-sizing: border-box;
}

button:hover {
  transform: translateY(-3px);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------------------- Ajustes responsive ------------------- */
@media (max-width: 600px) {
  .container {
    padding: 1rem;
    width: 90%;
  }

  .login-form h1 {
    font-size: 1.5rem;
  }

  .input-group input {
    font-size: 0.9rem;
  }

  button {
    font-size: 0.9rem;
  }
}

/* ------------------- Modo oscuro ------------------- */
.dark-mode {
  background-color: #121212;
  color: #e0e0e0;
}

.dark-mode .container {
  background-color: #121212;
}

.dark-mode .login-form h1 {
  color: #f0f0f0;
}

.dark-mode .input-group label {
  color: #ccc;
}

.dark-mode .input-group input {
  background-color: #2a2a2a;
  border: 1px solid #555;
  color: #fff;
}

.dark-mode .input-group input:focus {
  border-color: #88aaff;
}

.dark-mode button {
  background: #122173;
  color: #fff;
}

.dark-mode .img,
.dark-mode .img {
  filter: none;
}
