/* ═══════════════════════════════════════════════════════════════
   login.css — pantalla de entrada (login.php)
   ═══════════════════════════════════════════════════════════════ */

.lg {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--ui-bg-page);
  color: var(--ui-text);
  font-family: var(--ui-font-sans);
}

/* Luz suave detrás del botón */
.lg-fondo {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(42rem 28rem at 50% 58%, color-mix(in srgb, var(--ui-primary) 9%, transparent), transparent 70%),
    radial-gradient(36rem 24rem at 15% 0%, color-mix(in srgb, var(--ui-accent) 10%, transparent), transparent 70%);
}

.lg-contenido {
  position: relative;
  width: 100%;
  max-width: 30rem;
  padding: calc(32px + env(safe-area-inset-top, 0px)) 24px calc(32px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 40px;
  animation: lg-aparecer 0.6s ease-out both;
}

.lg-marca {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ui-text-muted);
}

.lg-marca img {
  border-radius: 16px;
  box-shadow: var(--ui-shadow-card);
}

.lg-frase {
  margin: 0;
}

.lg-frase blockquote {
  margin: 0;
  font-family: "Lora", Georgia, serif;
  font-style: italic;
  font-size: clamp(20px, 5vw, 24px);
  line-height: 1.5;
  text-wrap: balance;
}

.lg-frase blockquote::before { content: "“"; }
.lg-frase blockquote::after { content: "”"; }

.lg-frase figcaption {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ui-text-muted);
}

.lg-entrar {
  min-width: 13rem;
  height: 56px;
  padding: 0 32px;
  gap: 10px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 600;
  box-shadow: 0 10px 36px color-mix(in srgb, var(--ui-primary) 28%, transparent);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

/* "G" de Google sobre círculo blanco (se ve igual en tema claro y oscuro) */
.lg-google {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-left: -14px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}

.lg-entrar:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 44px color-mix(in srgb, var(--ui-primary) 38%, transparent);
}

.lg-error {
  margin: -16px 0 0;
  max-width: 22rem;
  font-size: 14px;
  color: var(--ui-danger, #ef4444);
}

.lg-entrar:active:not(:disabled) {
  transform: translateY(0) scale(0.98);
}

.lg-entrar.is-cargando {
  opacity: 0.75;
  cursor: progress;
}

.lg-entrar.is-cargando .lg-google {
  animation: lg-latido 0.8s ease-in-out infinite alternate;
}

.lg-ultimo {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--ui-text);
}

.lg-ultimo-etiqueta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ui-text-muted);
}

.lg-ultimo-hace {
  font-size: 13px;
  color: var(--ui-text-muted);
}

@keyframes lg-aparecer {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes lg-latido {
  to { transform: scale(0.85); }
}

@media (prefers-reduced-motion: reduce) {
  .lg-contenido,
  .lg-entrar.is-cargando .lg-google { animation: none; }
}
