:root {
  --verde: #2f5d34;
  --verde-claro: #4f8a3c;
  --marron: #5a2e1b;
  --dorado: #c8902e;
  --blanco: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--blanco);
  background: #0f2412; /* respaldo si el video no carga */
  overflow: hidden;
}

/* ---------- Video de fondo ---------- */
.video-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,.15) 0%, rgba(0,0,0,.6) 100%),
    linear-gradient(180deg, rgba(15,36,18,.35), rgba(15,36,18,.7));
}

/* ---------- Contenido ---------- */
.content {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 16px;
  gap: 22px;
}

.logo-card {
  background: rgba(255,255,255,.92);
  border-radius: 22px;
  padding: 28px 40px;
  box-shadow: 0 20px 50px rgba(0,0,0,.4);
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(20px) scale(.97);
  animation: aparecer 1s ease-out .2s forwards;
}

.logo {
  display: block;
  width: min(322px, 70vw);
  height: auto;
}

.title {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  letter-spacing: 2px;
  text-shadow: 0 3px 12px rgba(0,0,0,.6);
  opacity: 0;
  animation: aparecer 1s ease-out .6s forwards;
}

.subtitle {
  font-size: clamp(.95rem, 2vw, 1.1rem);
  line-height: 1.6;
  max-width: 520px;
  color: rgba(255,255,255,.9);
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
  opacity: 0;
  animation: aparecer 1s ease-out .9s forwards;
}

/* ---------- Botón login ---------- */
.btn-login {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 14px 38px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--dorado), #a8731f);
  color: var(--blanco);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 1px;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(200,144,46,.45);
  transition: transform .25s, box-shadow .25s, background .25s;
  opacity: 0;
  animation: aparecer 1s ease-out 1.2s forwards;
}

.btn-login svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-login:hover,
.btn-login:focus-visible {
  transform: translateY(-3px);
  background: linear-gradient(135deg, var(--verde-claro), var(--verde));
  box-shadow: 0 12px 30px rgba(47,93,52,.6);
  outline: none;
}

.btn-login.loading { pointer-events: none; opacity: .8; }

/* ---------- Footer ---------- */
.footer {
  position: fixed;
  bottom: 14px;
  width: 100%;
  text-align: center;
  font-size: .8rem;
  color: rgba(255,255,255,.7);
}

@keyframes aparecer {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .logo-card { padding: 20px 24px; border-radius: 16px; }
  .btn-login { padding: 13px 30px; font-size: .95rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; opacity: 1 !important; transform: none !important; }
}
