/* ============================================
   TOKENS DE DISEÑO
   Paleta: azul noche (confianza, panel de control)
   + ámbar (el acento de "tiempo/turno", usado con moderación)
   Tipografía: Space Grotesk (display) + Inter (texto)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --navy-950: #14213D;
  --navy-800: #1F2E52;
  --navy-100: #E7EAF3;
  --amber-500: #E8A33D;
  --amber-600: #CC8A28;
  --paper: #FAF9F6;
  --ink: #1B1F27;
  --ink-soft: #5B6272;
  --error: #C4432C;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
}

/* ============================================
   LAYOUT: dos paneles, mitad marca / mitad formulario
   ============================================ */

.login-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

@media (max-width: 800px) {
  .login-layout {
    grid-template-columns: 1fr;
  }
  .login-brand {
    padding: 2.5rem 1.5rem;
  }
}

/* ---- Panel izquierdo: identidad ---- */

.login-brand {
  background-image:
    linear-gradient(
      to bottom,
      var(--navy-950) 0%,
      var(--navy-950) 42%,
      rgba(20, 33, 61, 0.55) 65%,
      rgba(20, 33, 61, 0.15) 100%
    ),
    url('../assets/login-fondo.jpg');
  background-size: cover, cover;
  background-position: center, center 30%;
  background-repeat: no-repeat, no-repeat;
  color: var(--navy-100);
  display: flex;
  align-items: center;
  padding: 4rem;
  position: relative;
  overflow: hidden;
}

.brand-content {
  max-width: 400px;
  position: relative;
  z-index: 1;
}

.brand-mark {
  width: 48px;
  height: 48px;
  color: var(--amber-500);
  margin-bottom: 1.5rem;
}

.clock-icon { width: 100%; height: 100%; }

/* Signature element: el punto del pivote late muy lento, casi
   imperceptible, como recordatorio ambiental de que el tiempo
   siempre está corriendo */
.brand-pivot {
  transform-origin: 16px 24px;
  animation: latido-pivote 3s ease-in-out infinite;
}
@keyframes latido-pivote {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.25); }
}
@media (prefers-reduced-motion: reduce) {
  .brand-pivot { animation: none; }
}

.login-brand h1 {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

.brand-tagline {
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--navy-100);
  opacity: 0.85;
  margin: 0 0 2rem;
}

.brand-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.brand-list li {
  font-size: 0.95rem;
  padding-left: 1.4rem;
  position: relative;
  opacity: 0.9;
}

.brand-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  background: var(--amber-500);
  border-radius: 50%;
}

/* ---- Panel derecho: formulario ---- */

.login-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.login-form {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
}

.login-form h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--ink);
}

.form-subtitle {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0 0 1.75rem;
}

.login-form label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.login-form input {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.7rem 0.85rem;
  margin-bottom: 1.1rem;
  border: 1.5px solid var(--navy-100);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s ease;
}

.login-form input:focus {
  outline: none;
  border-color: var(--navy-800);
  box-shadow: 0 0 0 3px rgba(31, 46, 82, 0.12);
}

.login-form input:focus-visible {
  outline: 2px solid var(--amber-600);
  outline-offset: 1px;
}

.btn-primary {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--navy-950);
  border: none;
  border-radius: 8px;
  padding: 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease;
  margin-top: 0.25rem;
}

.btn-primary:hover { background: var(--navy-800); }
.btn-primary:focus-visible { outline: 2px solid var(--amber-600); outline-offset: 2px; }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.form-footer {
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 1.5rem;
}

.mensaje-error {
  background: #FBEAE6;
  color: var(--error);
  font-size: 0.9rem;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  margin-bottom: 1.1rem;
}