: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.80);
  z-index: 0;
}

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

/* ── CARD ── */
.auth-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top center, rgba(245, 197, 24, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(15, 15, 18, 0.95), rgba(10, 10, 10, 0.88));
  border: 1px solid rgba(245, 197, 24, 0.18);
  border-radius: 1.25rem;
  padding: 1.75rem 1.8rem 1.85rem;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 16px 52px rgba(0,0,0,0.55), 0 0 0 1px rgba(245,197,24,0.08);
  animation: fadeUp 0.5s ease both;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 1.2rem;
  right: 1.2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 197, 24, 0.65), transparent);
  opacity: 0.9;
}

@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(1.9rem, 7vw, 2.75rem);
  letter-spacing: 1.5px;
  line-height: 0.92;
  text-align: center;
  margin-bottom: 0.32rem;
  color: var(--gold);
  text-wrap: balance;
}

.brand-sub {
  text-align: center;
  font-size: 0.74rem;
  color: rgba(255,255,255,0.58);
  letter-spacing: 1.7px;
  text-transform: uppercase;
  margin-bottom: 0.62rem;
}

.tenant-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 330px);
  min-height: 108px;
  margin: 0 auto 1.1rem;
  padding: 0.9rem 1.15rem;
  border-radius: 0.95rem;
  background: linear-gradient(180deg, rgba(223, 225, 229, 0.96), rgba(198, 202, 208, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    0 8px 22px rgba(0, 0, 0, 0.24);
}

.tenant-logo {
  display: block;
  max-width: 290px;
  max-height: 96px;
  min-height: 58px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.16));
}

.tenant-caption {
  display: table;
  margin: 0 auto 1rem;
  padding: 0.36rem 0.68rem;
  text-align: center;
  color: rgba(255,255,255,0.82);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
}

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

.nav-tabs-custom .tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: 0.55rem;
  padding: 0.54rem 0;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.42);
  cursor: pointer;
  transition: all 0.22s 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.7rem;
  font-weight: 700;
  letter-spacing: 1.35px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.58);
  margin-bottom: 0.36rem;
}

.input-custom {
  width: 100%;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 0.72rem;
  min-height: 42px;
  padding: 0.65rem 0.9rem;
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 0.89rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 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: 0.85rem; }

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

.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;
}
