:root {
  --azul: #151d5b;
  --verde: #2ba651;
  --blanco: #ffffff;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(to right, #151d5b, #2ba651);
  display: flex;
  height: 100vh;
  align-items: center;
  justify-content: center;
}

.login-container {
  display: flex;
  width: 90%;
  max-width: 900px;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.login-left {
  background-color: var(--azul);
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-left .logo {
  width: 100%;
  max-width: 400px;
}

.login-right {
  flex: 1;
  padding: 40px;
  background-color: #f9f9f9;
}

.login-right h2 {
  color: var(--azul);
  margin-bottom: 20px;
}

input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: none;
  border-bottom: 2px solid var(--azul);
  background: transparent;
  outline: none;
  font-size: 16px;
}

button {
  width: 100%;
  background-color: var(--verde);
  color: var(--blanco);
  border: none;
  padding: 12px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 6px;
  margin-top: 20px;
}

button:hover {
  background-color: #239347;
}

.olvido {
  display: block;
  text-align: center;
  margin-top: 12px;
  color: var(--azul);
  font-size: 14px;
  text-decoration: none;
}

.mensaje-error {
  color: red;
  font-size: 14px;
  text-align: center;
}
@media (max-width: 768px) {
  .login-container {
    flex-direction: column;
  }
  .login-left {
    padding: 20px;
  }
  .login-left .logo {
    width: 150px;
  }
}

#loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader {
  border: 6px solid #ccc;
  border-top: 6px solid #151d5b;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
