/* Page-level overrides for production pages — let body/main scroll naturally. */

html, body {
  min-height: 100vh;
  height: auto;
  background: var(--bg);
}

/* Flow screens need to grow naturally and scroll the page, not be locked into a frame. */
.app-shell,
.admin-shell,
.admin-login,
.auth-screen {
  min-height: 100vh;
  height: auto;
}

.app-main,
.admin-main {
  overflow: visible;
}

/* Small floating demo-nav so user can navigate the prototype */
.demo-nav {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  background: rgba(15,18,23,.96);
  color: #fff;
  border-radius: 999px;
  padding: 6px;
  display: flex;
  gap: 2px;
  box-shadow: 0 20px 60px -16px rgba(0,0,0,.5);
  backdrop-filter: blur(20px);
  font-family: var(--font-display);
}
.demo-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  border-radius: 999px;
  transition: background .12s ease, color .12s ease;
  white-space: nowrap;
}
.demo-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.demo-nav a.on { background: var(--cic-red); color: #fff; }
.demo-nav-sep {
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,.15);
  align-self: center;
  margin: 0 4px;
}
.demo-nav-label {
  padding: 9px 12px 9px 16px;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,.4);
  font-weight: 700;
}
@media print { .demo-nav { display: none; } }

/* === Interactive states for PHP/jQuery prototype === */

/* OTP — input version */
.otp-input {
  width: 100%;
  height: 60px;
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  text-align: center;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  background: #fff;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.otp-input:focus,
.otp-input.otp-filled {
  border-color: var(--cic-blue);
  box-shadow: 0 0 0 4px rgba(0,94,141,.12);
}

/* Predict savebar — "dirty" hint */
.predict-savebar { transition: background .2s ease; }
.predict-savebar-dirty {
  background: var(--cic-red);
  animation: savebar-pulse 1s ease;
}
@keyframes savebar-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(229,36,32,.6); }
  100% { box-shadow: 0 0 0 0 rgba(229,36,32,0); }
}

/* Picker teams — re-numbered position chip */
.top8-team { position: relative; }
.top8-team .top8-team-pos { margin-left: auto; }

/* =============================================
   RESPONSIVE — Auth / Registration screens
   ============================================= */

/* Tablet (≤1024px): ocultar panel decorativo, form centrado */
@media (max-width: 1024px) {
  .auth-screen {
    grid-template-columns: 1fr;
    background: var(--bg-soft);
  }
  .auth-right {
    display: block;
    padding: 30px;
  }
  .auth-poster h2{
    font-size: 20px;
  }
  .auth-left {
    padding: 48px 40px 56px;
    max-width: 100%;
    justify-content: flex-start;
    margin: 0 auto;
    width: 100%;
    max-width: 620px;
  }
  .auth-form { max-width: 100%; }
  .auth-title { font-size: 36px; }
}

/* Mobile (≤767px): padding reducido, form full-width */
@media (max-width: 767px) {
  .auth-left {
    padding: 32px 20px 48px;
    max-width: 100%;
  }
  .auth-brand { margin-bottom: 24px; }
  .auth-title { font-size: 28px; }
  .auth-sub { font-size: 14px; margin-bottom: 24px; }
  .auth-form { gap: 12px; }
}
