﻿.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #f9fafb 0%, #ffffff 100%);
  padding: 24px;
}

.auth-container {
  width: 100%;
  max-width: 420px;
  background: white;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 40px 32px;
  box-shadow: var(--sombra-grande);
}

.auth-logo { display: block; text-align: center; margin-bottom: 24px; font-size: 24px; }
.auth-titulo { font-size: 26px; font-weight: 800; letter-spacing: -0.5px; text-align: center; margin-bottom: 8px; }
.auth-subtitulo { text-align: center; color: var(--texto-suave); font-size: 15px; margin-bottom: 28px; }
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo label { font-size: 14px; font-weight: 600; color: var(--texto); }
.campo input {
  padding: 12px 14px;
  border: 1px solid var(--borde);
  border-radius: 8px;
  font-size: 16px;  /* 16px evita el zoom en iOS */
  font-family: inherit;
  transition: border-color 0.15s;
  min-height: 44px;
}
.campo input:focus { outline: none; border-color: var(--verde); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15); }
.auth-boton { margin-top: 6px; width: 100%; min-height: 48px; }
.auth-error { background: #fee2e2; color: #991b1b; padding: 12px 14px; border-radius: 8px; font-size: 14px; }
.auth-ok { background: var(--verde-claro); color: var(--verde-oscuro); padding: 12px 14px; border-radius: 8px; font-size: 14px; }
.auth-pie { text-align: center; margin-top: 24px; font-size: 14px; color: var(--texto-suave); }
.auth-pie a { color: var(--verde-oscuro); font-weight: 600; }
.auth-pie a:hover { text-decoration: underline; }

/* Mostrar / ocultar contraseña */
.campo-password { position: relative; display: flex; align-items: center; }
.campo-password input { width: 100%; padding-right: 48px; }
.ojo {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: transparent; border: none; cursor: pointer;
  font-size: 18px; padding: 6px; line-height: 1; opacity: 0.6;
  transition: opacity 0.15s; min-width: 36px; min-height: 36px;
  display: flex; align-items: center; justify-content: center;
}
.ojo:hover { opacity: 1; }
.ojo:focus { outline: none; }

/* ===== MÓVIL ===== */
@media (max-width: 480px) {
  .auth-body { padding: 12px; align-items: flex-start; padding-top: 24px; }
  .auth-container { padding: 28px 20px; border-radius: 10px; }
  .auth-logo { font-size: 22px; margin-bottom: 20px; }
  .auth-titulo { font-size: 22px; }
  .auth-subtitulo { font-size: 14px; margin-bottom: 24px; }
  .auth-form { gap: 16px; }
  .campo input { padding: 12px 14px; font-size: 16px; }
  .auth-pie { font-size: 13px; }
}










@media (max-width: 480px) {
  
}



.auth-idioma {
  text-align: center;
  margin-bottom: 16px;
}

@media (max-width: 480px) {
  }


/* ===== Flecha volver (login y registro) ===== */
.auth-volver {
  position: fixed;
  top: 24px;
  left: 24px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #ffffff;
  color: #111827;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid #e5e7eb;
  transition: all 0.18s ease;
  z-index: 9999;
  padding: 0;
  margin: 0;
}
.auth-volver:hover {
  color: #10b981;
  border-color: #10b981;
  background: #f0fdf4;
  transform: translateX(-2px);
  box-shadow: 0 4px 12px rgba(16,185,129,0.18);
}
.auth-volver svg {
  display: block;
}

@media (max-width: 480px) {
  .auth-volver {
    top: 16px;
    left: 16px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
}

/* ===== Bloqueo con cuenta atrás ===== */
.bloqueo-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 16px 18px;
  text-align: center;
  margin: 8px 0;
}
.bloqueo-titulo {
  font-size: 16px;
  font-weight: 700;
  color: #991b1b;
  margin-bottom: 6px;
}
.bloqueo-texto {
  font-size: 13px;
  color: #991b1b;
  opacity: 0.85;
  margin-bottom: 8px;
}
.bloqueo-contador {
  font-size: 32px;
  font-weight: 800;
  color: #ef4444;
  letter-spacing: 2px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
