/* =====================================================================
   TeeTime · Inicio de sesión del panel (V3.4)
   Fondo: la portada del campo (Configuración › Imágenes) o un paisaje
   ilustrado. Tarjeta de vidrio esmerilado con la marca del campo.
   ===================================================================== */
body.lg { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; padding: 32px 16px 24px; font: 15px/1.45 var(--sans); color: var(--texto); overflow-x: hidden; position: relative; background: #DCEAD9; }
.lg [hidden] { display: none !important; }
.lg :focus-visible { outline: 3px solid #3D63C4; outline-offset: 2px; }

/* ---------- Fondo ---------- */
.lg-fondo { position: fixed; inset: 0; z-index: -2;
  background: linear-gradient(180deg, #B9D7EE 0%, #DCEBF3 42%, #E9F1E4 60%, #CFE3C5 100%); }
.lg-fondo--foto { background-size: cover; background-position: center; background-color: #6D8F6A; transform: scale(1.02); }
.lg-fondo--foto::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(110, 11, 28, .10) 0%, rgba(110, 11, 28, .05) 45%, rgba(42, 8, 14, .45) 100%); }
.lg-paisaje { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; }

/* ---------- Curvas decorativas ---------- */
.lg-curva { position: fixed; z-index: -1; pointer-events: none; filter: drop-shadow(0 6px 14px rgba(11, 42, 32, .25)); }
.lg-curva--arriba { top: 0; left: 0; width: min(46vw, 520px); height: auto; }
.lg-curva--abajo { right: 0; bottom: 0; width: min(52vw, 640px); height: auto; }

/* ---------- Tarjeta ---------- */
.lg-tarjeta { position: relative; width: min(440px, 100%); padding: 34px 36px 54px; border-radius: 28px; overflow: hidden;
  background: rgba(255, 255, 255, .80); border: 1px solid rgba(255, 255, 255, .75);
  -webkit-backdrop-filter: blur(16px) saturate(1.25); backdrop-filter: blur(16px) saturate(1.25);
  box-shadow: 0 30px 70px rgba(11, 42, 32, .28), inset 0 1px 0 rgba(255, 255, 255, .9);
  animation: lg-entrar .45s cubic-bezier(.2, .8, .2, 1); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .lg-tarjeta { background: rgba(255, 255, 255, .94); } }
@keyframes lg-entrar { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.lg-tarjeta__ola { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 34px; }

.lg-marca { display: flex; justify-content: center; align-items: center; min-height: 72px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid rgba(110, 11, 28, .12); }
.lg-logo { max-width: 290px; max-height: 84px; width: auto; height: auto; object-fit: contain; }
.lg-nombre { margin: 0; text-align: center; font: 700 26px/1.15 var(--display); letter-spacing: 1.5px; text-transform: uppercase; color: var(--verde); }

.lg-vista { display: flex; flex-direction: column; gap: 4px; animation: lg-vista .3s ease; }
@keyframes lg-vista { from { opacity: 0; transform: translateX(8px); } }
@media (prefers-reduced-motion: reduce) { .lg-tarjeta, .lg-vista { animation: none; } }
.lg-titulo { margin: 0; text-align: center; font: 700 30px/1.2 var(--display); color: var(--verde); letter-spacing: -.3px; }
.lg-sub { margin: 2px 0 18px; text-align: center; color: var(--texto-2); font-size: 14px; }
.lg form { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Campos ---------- */
.lg-campo { position: relative; display: block; }
.lg-campo input { width: 100%; height: 52px; padding: 0 48px 0 46px; border: 1px solid rgba(110, 11, 28, .16); border-radius: 12px; background: rgba(255, 255, 255, .96);
  font: 16px var(--sans); color: var(--texto); box-shadow: 0 1px 2px rgba(11, 42, 32, .06); transition: border-color .15s, box-shadow .15s; }
.lg-campo input::placeholder { color: #6B7570; }
.lg-campo input:focus { outline: none; border-color: var(--verde-2); box-shadow: 0 0 0 4px rgba(168, 19, 42, .16); }
.lg-campo input[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 4px var(--error-fondo); }
.lg-icono { position: absolute; left: 15px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: var(--verde); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.lg-ojo { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: none; border-radius: 10px; cursor: pointer; color: var(--texto-2); display: flex; align-items: center; justify-content: center; }
.lg-ojo:hover { background: var(--tenue); }
.lg-ojo svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.lg-ojo[aria-pressed="true"] .lg-ojo__tache { display: none; }
.lg-mayus { margin: -4px 0 0 4px; font-size: 13px; color: var(--juego); font-weight: 500; }

.lg-fila { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 2px 0; }
.lg-check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--texto-2); cursor: pointer; min-height: 32px; }
.lg-check input { width: 18px; height: 18px; accent-color: var(--verde); margin: 0; }
.lg-enlace { border: 0; background: none; padding: 6px 2px; font: 600 14px var(--sans); color: var(--verde-2); cursor: pointer; text-decoration: none; border-radius: 6px; }
.lg-enlace:hover { color: var(--verde); text-decoration: underline; }
.lg-volver { display: inline-flex; align-items: center; gap: 4px; align-self: center; margin-top: 12px; }
.lg-volver svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

.lg-mensaje { margin: 0; padding: 10px 12px; border-radius: 10px; font-size: 14px; line-height: 1.45; background: var(--error-fondo); border: 1px solid var(--error-borde); color: var(--error); }
.lg-mensaje--ok { background: var(--ok-fondo); border-color: var(--ok-borde); color: var(--ok); }

/* ---------- Botón ---------- */
.lg-boton { position: relative; height: 54px; margin-top: 4px; border: 0; border-radius: 12px; cursor: pointer; color: #fff; font: 700 17px var(--sans);
  background: linear-gradient(180deg, #C8243A 0%, #7A0E20 100%); box-shadow: 0 10px 22px rgba(110, 11, 28, .32), inset 0 1px 0 rgba(255, 255, 255, .18);
  display: flex; align-items: center; justify-content: center; gap: 8px; transition: transform .12s, box-shadow .12s, filter .12s; }
.lg-boton:hover { filter: brightness(1.08); box-shadow: 0 12px 26px rgba(110, 11, 28, .38); }
.lg-boton:active { transform: translateY(1px); }
.lg-boton:disabled { cursor: not-allowed; filter: grayscale(.4) brightness(1.15); box-shadow: none; }
.lg-boton svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.lg-boton[aria-busy="true"] span, .lg-boton[aria-busy="true"] svg { visibility: hidden; }
.lg-boton[aria-busy="true"]::after { content: ""; position: absolute; width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: lg-giro .8s linear infinite; }
@keyframes lg-giro { to { transform: rotate(360deg); } }

.lg-reglas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--texto-3); }
.lg-reglas li { display: flex; align-items: center; gap: 8px; }
.lg-reglas li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--borde-3); flex: none; }
.lg-reglas li.cumple { color: var(--ok); }
.lg-reglas li.cumple::before { border-color: var(--ok); background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 10px no-repeat; }

/* ---------- Pie ---------- */
.lg-pie { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
  background: rgba(11, 42, 32, .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: 6px 12px; border-radius: 999px; }
.lg-pie img { height: 22px; width: auto; }
.lg-version { opacity: .8; }

@media (max-width: 520px) {
  body.lg { justify-content: flex-start; padding-top: max(28px, 6vh); }
  .lg-tarjeta { padding: 28px 22px 50px; border-radius: 24px; }
  .lg-titulo { font-size: 26px; }
  .lg-logo { max-width: 240px; max-height: 70px; }
  .lg-curva--arriba { width: 70vw; }
  .lg-curva--abajo { width: 80vw; }
}
@media (max-height: 640px) { body.lg { justify-content: flex-start; } }

/* =====================================================================
   Portal de golfistas (2.0): registro y pantallas de enlace
   ===================================================================== */
.lg-tarjeta--ancha { width: min(540px, 100%); }
.lg-campo--simple input { padding-left: 14px; }
.lg-doble { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .lg-doble { grid-template-columns: 1fr; } }
.lg-ayuda { margin: -6px 0 0 4px; font-size: 12px; color: var(--texto-3); }
.lg-ayuda--ok { color: var(--ok); }
.lg-ayuda--error { color: var(--error); }
.lg-cambio { margin: 14px 0 0; text-align: center; font-size: 14px; color: var(--texto-2); }
.lg-marca__texto { font: 700 15px var(--display); letter-spacing: 2px; color: var(--verde); margin-left: 10px; }
.lg-check a { color: var(--verde-2); font-weight: 600; }
.lg-icono-grande { width: 64px; height: 64px; border-radius: 50%; margin: 4px auto 10px; display: flex; align-items: center; justify-content: center; background: var(--ok-fondo); color: var(--ok); }
.lg-icono-grande--error { background: var(--error-fondo); color: var(--error); }
.lg-icono-grande svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.lg-texto { text-align: center; color: var(--texto-2); margin: 0 0 14px; }
a.lg-boton { text-decoration: none; }
.lg-boton--peligro { background: linear-gradient(180deg, #B8501F 0%, #8A3409 100%); box-shadow: 0 10px 22px rgba(161, 59, 10, .3); }
