:root {
  --gold: #F5C518;
  --gold-dark: #d4a800;
  --dark-bg: #0d0d0d;
  --card-bg: rgba(10, 10, 10, 0.82);
  --input-bg: rgba(255, 255, 255, 0.07);
  --input-border: rgba(255, 255, 255, 0.15);
  --text-muted-custom: rgba(255,255,255,0.5);
}

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

body {
  font-family: 'Nunito', sans-serif;
  min-height: 100vh;
  background: url('../img/cancha.png') center center / cover no-repeat fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

/* Overlay oscuro sobre la cancha */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 0;
}

.wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
}

/* ── CARD ── */
.auth-card {
  background: var(--card-bg);
  border: 1px solid rgba(245, 197, 24, 0.18);
  border-radius: 1.25rem;
  padding: 2.25rem 2rem;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 8px 48px rgba(0,0,0,0.6), 0 0 0 1px rgba(245,197,24,0.08);
  animation: fadeUp 0.5s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── TÍTULO ── */
.brand-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.2rem, 8vw, 3rem);
  letter-spacing: 2px;
  line-height: 1;
  text-align: center;
  margin-bottom: 0.2rem;
}
.brand-title span.gold  { color: var(--gold); }
.brand-title span.mexico { color: #006847; }

.brand-sub {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted-custom);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

/* ── TABS ── */
.nav-tabs-custom {
  display: flex;
  background: rgba(255,255,255,0.06);
  border-radius: 0.6rem;
  padding: 4px;
  margin-bottom: 1.75rem;
  gap: 4px;
}

.nav-tabs-custom .tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: 0.45rem;
  padding: 0.55rem 0;
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted-custom);
  cursor: pointer;
  transition: all 0.25s ease;
}

.nav-tabs-custom .tab-btn.active {
  background: var(--gold);
  color: #000;
  box-shadow: 0 2px 12px rgba(245,197,24,0.35);
}

/* ── INPUTS ── */
.form-label-custom {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text-muted-custom);
  margin-bottom: 0.4rem;
}

.input-custom {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 0.6rem;
  padding: 0.75rem 1rem;
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.input-custom::placeholder { color: rgba(255,255,255,0.28); }

.input-custom:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245,197,24,0.15);
  background: rgba(255,255,255,0.1);
}

.mb-field { margin-bottom: 1.1rem; }

/* ── BOTÓN PRINCIPAL ── */
.btn-gold {
  width: 100%;
  background: var(--gold);
  color: #000;
  border: none;
  border-radius: 0.6rem;
  padding: 0.8rem;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 18px rgba(245,197,24,0.3);
}

.btn-gold:hover {
  background: var(--gold-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(245,197,24,0.45);
}

.btn-gold:active { transform: translateY(0); }

.btn-gold:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ── ALERTA / MENSAJE ── */
.alert-custom {
  border-radius: 0.6rem;
  padding: 0.7rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: none;
}
.alert-custom.error   { background: rgba(220,53,69,0.2);  border: 1px solid rgba(220,53,69,0.4);  color: #ff6b7a; }
.alert-custom.success { background: rgba(25,135,84,0.2);  border: 1px solid rgba(25,135,84,0.4);  color: #6fe0a8; }
.alert-custom.show    { display: block; animation: fadeUp 0.3s ease both; }

/* ── SPINNER ── */
.spinner-border-sm { width: 1rem; height: 1rem; }

/* ── RESPONSIVE ── */

/* 501px - 767px */
@media (max-width: 767px) and (min-width: 501px) {
  body          { padding: 1.25rem; }
  .wrapper      { max-width: 400px; }
  .auth-card    { padding: 2rem 1.75rem; }
  .brand-title  { font-size: clamp(1.8rem, 7vw, 2.5rem); }
  .input-custom { font-size: 0.9rem; padding: 0.7rem 0.9rem; }
  .btn-gold     { font-size: 0.95rem; padding: 0.75rem; }
}

/* 351px - 500px */
@media (max-width: 500px) and (min-width: 351px) {
  body          { padding: 1rem; }
  .wrapper      { max-width: 100%; }
  .auth-card    { padding: 1.75rem 1.25rem; border-radius: 1rem; }
  .brand-title  { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .brand-sub    { font-size: 0.72rem; margin-bottom: 1.5rem; }
  .tab-btn      { font-size: 0.82rem; }
  .input-custom { font-size: 0.85rem; padding: 0.65rem 0.85rem; }
  .btn-gold     { font-size: 0.88rem; padding: 0.7rem; }
  .alert-custom { font-size: 0.78rem; padding: 0.6rem 0.85rem; }
}

/* 0px - 350px */
@media (max-width: 350px) {
  body          { padding: 0.5rem; }
  .wrapper      { max-width: 100%; }
  .auth-card    { padding: 1.25rem 0.85rem; border-radius: 0.85rem; }
  .brand-title  { font-size: 1.5rem; letter-spacing: 0.5px; }
  .brand-sub    { font-size: 0.6rem; letter-spacing: 0.8px; margin-bottom: 1rem; }
  .nav-tabs-custom { padding: 3px; gap: 3px; }
  .tab-btn      { font-size: 0.75rem; padding: 0.45rem 0; }
  .form-label-custom { font-size: 0.6rem; }
  .input-custom { font-size: 0.75rem; padding: 0.55rem 0.7rem; }
  .btn-gold     { font-size: 0.78rem; padding: 0.58rem; }
  .alert-custom { font-size: 0.68rem; padding: 0.45rem 0.7rem; }
  .spinner-border-sm { width: 0.8rem; height: 0.8rem; }
}

/* ══ RESET CONTRASEÑA ══ */

.btn-reset-link {
  background: none;
  border: none;
  color: var(--gold, #f5c518);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  opacity: 0.8;
  transition: opacity 0.18s;
}
.btn-reset-link:hover { opacity: 1; }



/* ══ PÁGINA RESET ══ */

.reset-page-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(245,197,24,0.08);
  border: 1px solid rgba(245,197,24,0.25);
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
}

.reset-page-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.reset-page-titulo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  color: #fff;
  letter-spacing: 1.2px;
}

.reset-page-sub {
  font-size: 0.78rem;
  color: #aaa;
  margin-top: 0.1rem;
}


/* ══ INPUT HINT ══ */
.input-hint {
  display: block;
  font-size: 0.72rem;
  color: #888;
  margin-top: 0.3rem;
  line-height: 1.4;
}
