body {
  font-family: Arial, sans-serif;
  background: #ffffff;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
}

.card {
  background: #fff;
  border: 2px solid #001f3f;
  box-shadow: 0 0 15px #001f3f40;
  padding: 30px;
  border-radius: 15px;
  width: 100%;
  max-width: 380px;
  text-align: center;
}

h2 {
  color: #001f3f;
  font-size: 1.5rem;
}

input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #001f3f;
  border-radius: 8px;
  outline: none;
  font-size: 1rem;
}

button {
  background: #001f3f;
  color: white;
  border: none;
  padding: 12px;
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: 0.3s;
}

button:hover {
  background: #003366;
}

a {
  color: #003366;
  text-decoration: none;
  display: block;
  margin-top: 10px;
  font-size: 0.9rem;
}

/* 🔹 Responsividad */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .card {
    padding: 20px;
    max-width: 100%;
  }

  h2 {
    font-size: 1.2rem;
  }

  input, button {
    font-size: 0.9rem;
    padding: 10px;
  }

  a {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  h2 {
    font-size: 1rem;
  }

  input, button {
    font-size: 0.8rem;
    padding: 8px;
  }
}

:root {
  --color-bg: #ffffff;
  --color-title: #0B1E3A;       /* azul marino */
  --color-subtle: #6B7280;      /* gris */
  --color-accent: #0C2A6D;      /* azul marino 2 */
  --radius: 14px;
  --shadow: 0 10px 30px rgba(12,42,109,.08);
}

#splash {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity .5s ease, visibility .5s ease;
}

#splash.hidden {
  opacity: 0;
  visibility: hidden;
}

.splash__content {
  text-align: center;
  padding: 20px;
  animation: fadeUp .6s ease;
}

.splash__logo {
  width: 120px;
  max-width: 40vw;
  animation: breathe 3s ease-in-out infinite;
}

.splash__title {
  margin-top: 20px;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-title);
}

.splash__subtitle {
  font-size: .9rem;
  color: var(--color-subtle);
  margin: 8px 0 20px;
}

.splash__progress {
  width: 100%;
  max-width: 280px;
  height: 8px;
  background: #f0f0f0;
  border-radius: var(--radius);
  margin: 0 auto;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.splash__progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--color-accent), #123b7a);
  border-radius: var(--radius);
  transition: width .2s ease;
}

.splash__percent {
  margin-top: 8px;
  font-size: .9rem;
  color: var(--color-title);
}

/* Animaciones */
@keyframes breathe {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
  .splash__logo, .splash__content {
    animation: none !important;
  }
  .splash__progress-bar {
    transition: none !important;
  }
}

/* Responsive */
@media (max-width: 480px) {
  .splash__title { font-size: 1.1rem; }
  .splash__subtitle { font-size: .8rem; }
}

/* Contenedor de login + imagen */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap; /* 🔹 hace que en móvil se apile */
  margin-top: 40px;
}

/* Ajuste del formulario */
.login-container .card {
  flex: 1;
  max-width: 350px;
}

/* Imagen al lado */
.login-container .login-image {
  flex: 1;
  max-width: 380px;
  text-align: center;
}
.login-container .login-image img {
  width: 100%;
  height: auto;
  max-width: 380px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,.2);
}

/* Responsivo */
@media (max-width: 768px) {
  .login-container {
    flex-direction: column;
  }
  .login-container .login-image {
    order: -1; /* Imagen arriba en móvil */
  }
}

/* Remember Me checkbox */
.remember-wrapper {
  margin-top: 10px;
  margin-bottom: 15px;
}

.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--color-title);
  cursor: pointer;
}

.remember input[type="checkbox"] {
  accent-color: var(--color-accent); /* Azul marino */
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.hint {
  display: block;
  font-size: 0.75rem;
  color: var(--color-subtle);
  margin-left: 24px; /* alineado con el texto */
  margin-top: 2px;
}
