/* ============================================================================
 * Manantiales Golf · Gate de acceso — estilos
 * ==========================================================================*/

/* Oculta el contenido hasta que se resuelva la sesión.
   Se aplica inline en el <head> también, para evitar parpadeo. */
html.auth-locked body > *:not(.auth-gate) {
  display: none !important;
}
html.auth-locked, html.auth-locked body {
  overflow: hidden;
}

.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    linear-gradient(rgba(12, 24, 18, 0.72), rgba(12, 24, 18, 0.82)),
    url("assets/img/golf/golf-05.jpg") center/cover no-repeat, #0c1812;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.auth-logo {
  width: 190px;
  height: auto;
  margin: 0 auto 20px;
  display: block;
}

.auth-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  color: #1a2c22;
  margin: 0 0 8px;
}

.auth-sub {
  font-size: 14px;
  line-height: 1.5;
  color: #55635b;
  margin: 0 0 24px;
}

.auth-google {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 500;
  color: #3c4043;
  background: #fff;
  border: 1.5px solid #d3dbd6;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.auth-google:hover {
  background: #f7f9f8;
  border-color: #b9c4bd;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.auth-google:disabled { opacity: 0.6; cursor: default; }
.auth-google-icon { width: 18px; height: 18px; flex: 0 0 auto; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px;
  color: #98a49c;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8e4;
}

.auth-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.auth-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #3a4a41;
}

.auth-input {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  font-size: 16px;
  border: 1.5px solid #d3dbd6;
  border-radius: 10px;
  color: #1a2c22;
  background: #fafbfa;
  transition: border-color 0.15s, background 0.15s;
}
.auth-input:focus {
  outline: none;
  border-color: #2f7d55;
  background: #fff;
}

.auth-hint {
  font-size: 12px;
  color: #8a958e;
  margin: 2px 0 0;
}

.auth-btn {
  margin-top: 12px;
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: #2f7d55;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}
.auth-btn:hover { background: #276847; }
.auth-btn:disabled { opacity: 0.6; cursor: default; }

.auth-link {
  margin-top: 6px;
  background: none;
  border: none;
  color: #2f7d55;
  font-size: 14px;
  cursor: pointer;
  padding: 6px;
  align-self: center;
}
.auth-link:hover { text-decoration: underline; }

.auth-error {
  margin: 16px 0 0;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.4;
  color: #8a1f1f;
  background: #fdeaea;
  border: 1px solid #f3c9c9;
  border-radius: 8px;
  text-align: left;
}

/* reCAPTCHA visible: centrado dentro del formulario de teléfono */
#auth-recaptcha {
  margin: 14px 0 4px;
  display: flex;
  justify-content: center;
  min-height: 78px;
}
#auth-recaptcha:empty { min-height: 0; margin: 0; }

.auth-logout { cursor: pointer; border: none; }

@media (max-width: 480px) {
  .auth-card { padding: 28px 22px 22px; border-radius: 14px; }
  .auth-logo { width: 160px; }
}
