/* ==========================================================================
   JAGUARS BRAZILIAN FUTSAL BALI — OFFICIAL SECURE REGISTRATION PORTAL
   ========================================================================== */

:root {
  --bg-obsidian: #080a0f;
  --bg-card: #111622;
  --bg-input: #090c13;
  --gold: #f5c400;
  --gold-bright: #ffd633;
  --gold-dim: rgba(245, 196, 0, 0.12);
  --gold-border: rgba(245, 196, 0, 0.42);
  --green: #22c55e;
  --green-dim: rgba(34, 197, 94, 0.14);
  --danger: #f87171;
  --white: #f8fafc;
  --text-body: #cbd5e1;
  --text-muted: #8e9bb0;
  --border-subtle: rgba(255, 255, 255, 0.11);
  --font-display: 'Barlow Condensed', 'Oswald', Impact, sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  background: var(--bg-obsidian);
  color: var(--white);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 68% 42% at 50% 0%, rgba(245, 196, 0, 0.11) 0%, rgba(14, 92, 230, 0.06) 45%, transparent 78%),
    var(--bg-obsidian);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

.topbar-accent {
  height: 3px;
  background: linear-gradient(90deg, rgba(245, 196, 0, 0.15) 0%, var(--gold) 50%, rgba(245, 196, 0, 0.15) 100%);
}

/* Header */
.portal-header {
  border-bottom: 1px solid rgba(245, 196, 0, 0.16);
  background: rgba(8, 10, 15, 0.9);
  backdrop-filter: blur(12px);
}

.header-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand-crest {
  width: 50px;
  height: 50px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.75));
}

.brand-meta { min-width: 0; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.05;
}
.brand-sub {
  font-size: 0.74rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.sec-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.68rem;
  border-radius: 999px;
  background: var(--green-dim);
  border: 1px solid rgba(34, 197, 94, 0.38);
  color: #86efac;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 0.18rem 0.45rem;
  gap: 0.25rem;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.35rem;
  cursor: pointer;
  border-radius: 999px;
}
.lang-btn.active { color: #080a0f; background: var(--gold); }
.lang-sep { color: rgba(255, 255, 255, 0.2); font-size: 0.72rem; }

/* Main Stage */
.portal-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.2rem 1.15rem 2.8rem;
}

.portal-wrap {
  width: 100%;
  max-width: 540px;
}

.eyebrow-wrap { text-align: center; margin-bottom: 1.25rem; }

.pill-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.84rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.portal-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 2.75rem);
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: 0.02em;
}
.text-gold { color: var(--gold); }

.portal-lead {
  color: var(--text-body);
  font-size: 0.92rem;
  margin-top: 0.55rem;
}

/* Executive Card */
.reg-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--gold-border);
  border-top: 3px solid var(--gold);
  border-radius: 14px;
  padding: 1.85rem 1.75rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}

.schedule-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.68rem 0.9rem;
  margin-bottom: 1.35rem;
  background: rgba(245, 196, 0, 0.07);
  border: 1px solid rgba(245, 196, 0, 0.22);
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--text-body);
}
.schedule-strip strong { color: var(--gold); font-weight: 700; }

/* Form Controls */
.field-group { margin-bottom: 1.08rem; }

.field-row-2 {
  display: grid;
  grid-template-columns: 1.55fr 0.85fr;
  gap: 0.85rem;
}

.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
}
.req-star { color: var(--gold); margin-left: 0.2rem; }
.opt-tag { font-size: 0.73rem; font-weight: 500; color: var(--text-muted); }

.input-wrap { position: relative; display: flex; align-items: center; }

.form-input {
  width: 100%;
  padding: 0.84rem 0.95rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.form-input::placeholder { color: #5f6c82; }
.form-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 196, 0, 0.15);
}
.form-input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.14);
}

.input-has-unit { padding-right: 4.2rem; }
.input-unit {
  position: absolute;
  right: 0.75rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  pointer-events: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.field-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.32rem;
}

.link-add-phone {
  display: inline-block;
  margin-top: 0.38rem;
  background: none;
  border: none;
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
.link-add-phone:hover { text-decoration: underline; }

.field-error {
  font-size: 0.77rem;
  color: var(--danger);
  font-weight: 600;
  margin-top: 0.32rem;
}

.form-alert {
  padding: 0.75rem 0.95rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #fecaca;
  font-size: 0.84rem;
  font-weight: 600;
}

/* Anti-bot Honeypot (off-screen) */
.hp-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Buttons */
.btn-submit, .btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.btn-submit, .btn-primary {
  background: var(--gold);
  color: #080a0f;
  box-shadow: 0 8px 26px rgba(245, 196, 0, 0.34);
}
.btn-submit:hover, .btn-primary:hover {
  background: var(--gold-bright);
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(245, 196, 0, 0.48);
}
.btn-submit:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.btn-secondary {
  margin-top: 0.65rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  border: 1px solid var(--border-subtle);
  font-size: 0.94rem;
  padding: 0.78rem 1.2rem;
}
.btn-secondary:hover { border-color: var(--gold-border); background: rgba(245, 196, 0, 0.08); }

.trust-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.45;
}
.trust-icon { color: #86efac; font-size: 0.9rem; flex-shrink: 0; margin-top: 0.05rem; }

/* Thank You & Waiting View */
.ty-icon-ring {
  width: 68px;
  height: 68px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--green-dim);
  border: 2px solid rgba(34, 197, 94, 0.55);
  color: #4ade80;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 900;
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.25);
}

.ty-center { text-align: center; }

.ty-summary {
  margin: 1.25rem 0;
  padding: 1rem 1.1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  text-align: left;
  font-size: 0.86rem;
}

.ty-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}
.ty-row:last-child { border-bottom: none; }
.ty-lbl { color: var(--text-muted); }
.ty-val { color: var(--white); font-weight: 700; text-align: right; word-break: break-word; }
.ty-ref { color: var(--gold); font-family: monospace; font-size: 0.9rem; }

.wait-box {
  margin: 1.15rem 0 1.3rem;
  padding: 0.95rem 1rem;
  background: rgba(245, 196, 0, 0.07);
  border: 1px solid rgba(245, 196, 0, 0.26);
  border-radius: 10px;
  text-align: center;
}

.wait-status {
  font-size: 0.86rem;
  color: var(--text-body);
  margin-bottom: 0.6rem;
}
.wait-count {
  color: var(--gold);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.ty-progress {
  width: 100%;
  height: 8px;
  appearance: none;
  -webkit-appearance: none;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.ty-progress::-webkit-progress-bar { background: rgba(255, 255, 255, 0.1); border-radius: 999px; }
.ty-progress::-webkit-progress-value { background: linear-gradient(90deg, var(--gold), #22c55e); border-radius: 999px; transition: width 0.2s linear; }
.ty-progress::-moz-progress-bar { background: linear-gradient(90deg, var(--gold), #22c55e); border-radius: 999px; }

/* Footer */
.portal-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.15rem 1.25rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.portal-footer a { color: var(--gold); font-weight: 600; }
.portal-footer a:hover { text-decoration: underline; }

@media (max-width: 560px) {
  .sec-pill span.sec-txt { display: none; }
  .reg-card { padding: 1.45rem 1.2rem; }
  .field-row-2 { grid-template-columns: 1fr; gap: 0; }
  .brand-name { font-size: 1.02rem; }
  .brand-crest { width: 42px; height: 42px; }
}
