/* Full-page login / register / OTP / forgot-password. */
.auth-top { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.auth-top .logo img { height: 40px; width: auto; }
.auth-top .back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #cfd3dc; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line); }
.auth-top .back:hover { background: var(--surface-2); color: #fff; }

.auth {
  display: grid; grid-template-columns: minmax(380px, 470px) minmax(0, 1fr); gap: 28px;
  min-height: calc(100vh - 72px - 28px); padding-bottom: 28px;
}

/* ---- form card ---- */
.auth-card {
  align-self: center; position: relative; padding: 34px 32px 28px; border-radius: 28px;
  background: linear-gradient(180deg, rgba(24, 28, 40, .92), rgba(16, 19, 28, .92));
  border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(12px);
}
.auth-card::before {        /* team-coloured top edge */
  content: ""; position: absolute; inset: 0 24px auto; height: 3px; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, transparent, var(--t1), var(--t2), transparent);
}
.auth-card h1 { margin: 0 0 4px; font-size: 26px; font-weight: 900; }
.auth-card .lead { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.auth-card form { display: grid; gap: 16px; }
.auth-card .foot { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; font-size: 14px; color: var(--muted); }
.auth-card .legal { font-size: 12px; color: #7d8494; text-align: center; margin: 2px 0 0; }
.auth-card .legal a { color: #c8ccd6; text-decoration: underline; text-underline-offset: 3px; }
.step { display: none; animation: step-in .35s ease; }
.step.on { display: block; }
@keyframes step-in { from { opacity: 0; transform: translateX(-14px); } }

.seg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 4px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--line); margin-bottom: 4px; }
.seg button { height: 40px; border: 0; border-radius: 10px; background: none; color: var(--muted); font-weight: 600; font-size: 14px; }
.seg button.on { background: #fff; color: #111; box-shadow: 0 6px 16px -8px rgba(0,0,0,.6); }
.row-between { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #cfd3dc; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--gold); }

/* password strength */
.meter { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin-top: 2px; }
.meter i { height: 4px; border-radius: 2px; background: rgba(255,255,255,.1); transition: background .25s; }
.meter[data-s="1"] i:nth-child(-n+1) { background: var(--bad); }
.meter[data-s="2"] i:nth-child(-n+2) { background: #ff9f43; }
.meter[data-s="3"] i:nth-child(-n+3) { background: #ffd23f; }
.meter[data-s="4"] i { background: var(--ok); }

/* OTP */
.otp-to { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.otp-to b { direction: ltr; unicode-bidi: isolate; letter-spacing: .04em; color: #fff; }
.otp { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; direction: ltr; }
.otp input {
  height: 62px; width: 100%; text-align: center; font-size: 26px; font-weight: 800; border-radius: 16px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line-2); outline: 0; caret-color: var(--gold);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.otp input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(245,180,0,.15); }
.otp input.fill { border-color: rgba(245,180,0,.6); }
.otp.err input { border-color: var(--bad); animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.timer { text-align: center; font-size: 13.5px; color: var(--muted); }
.timer b { color: #fff; font-variant-numeric: tabular-nums; }

/* stepper (forgot password) */
.stepper { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 12.5px; color: var(--muted); }
.stepper span { display: flex; align-items: center; gap: 6px; }
.stepper span i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; background: rgba(255,255,255,.08); }
.stepper span.on { color: #fff; } .stepper span.on i { background: var(--gold); color: #111; }
.stepper span.done i { background: var(--ok); color: #06200f; }
.stepper hr { flex: 1; height: 1px; border: 0; background: var(--line-2); margin: 0; }

.done { text-align: center; padding: 16px 0 6px; }
.done .tick { width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: rgba(47,207,122,.12); color: var(--ok); }
.done .tick svg { width: 44px; height: 44px; stroke-width: 2.4; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s .15s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---- full-screen real footage behind everything (mirrored so the ball sits left of the form) ---- */
.auth-page { background: radial-gradient(80% 60% at 30% 70%, #123a22, transparent 70%), #060a14; }
.stage { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); z-index: -2; opacity: 0; transition: opacity 1.2s ease; background: #05070c; }
.stage-on .stage { opacity: 1; }
.stage-shade { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to left, rgba(4,7,14,.82) 0, rgba(4,7,14,.45) 34%, transparent 58%),
              linear-gradient(to top, rgba(4,7,14,.7), transparent 30%); }
.auth-top .back { background: rgba(10,14,24,.5); backdrop-filter: blur(8px); }
.auth-card { background: linear-gradient(180deg, rgba(20,25,38,.74), rgba(12,15,24,.8)); backdrop-filter: blur(18px) saturate(1.2); }

.auth-hero { align-self: end; justify-self: end; max-width: 460px; padding: 0 8px 3vh; text-shadow: 0 2px 18px rgba(0,0,0,.6); }
.auth-hero .now { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: 13px; color: #d8dce6;
  background: rgba(8,12,22,.55); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(8px); }
.auth-hero .now b { color: #fff; }
.auth-hero .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--t1); box-shadow: 0 0 0 4px color-mix(in oklab, var(--t1) 30%, transparent); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px transparent; } }
.auth-hero h2 { margin: 12px 0 12px; font-size: clamp(22px, 2.3vw, 30px); font-weight: 900; line-height: 1.3; }
.auth-hero em { font-style: normal; background: linear-gradient(90deg, var(--t1), var(--t3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-hero ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.auth-hero li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; font-size: 13px; background: rgba(8,12,22,.55); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(8px); }
.auth-hero li svg { color: var(--t1); width: 18px; height: 18px; }

/* on the footage page the picture is the headline: keep only the team chip */
.auth-hero h2, .auth-hero ul { display: none; }

/* the kit from the shop, floating over the pitch */
.auth-kit { position: fixed; z-index: 0; left: 9vw; top: 17vh; width: min(30vw, 440px); aspect-ratio: 1; display: block; perspective: 900px; }
.auth-kit .glow { position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in oklab, var(--t1) 50%, transparent), transparent 72%); filter: blur(8px); }
.auth-kit img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 40px 36px rgba(0,0,0,.65)); animation: akfloat 6s ease-in-out infinite; }
.auth-kit.in img { animation: akin .8s cubic-bezier(.2,.8,.2,1), akfloat 6s .8s ease-in-out infinite; }
@keyframes akin { from { opacity: 0; transform: rotateY(-70deg) scale(.9); } }
@keyframes akfloat { 50% { transform: translateY(-12px) rotate(-1deg); } }
@media (max-width: 1100px) { .auth-kit { display: none; } }

/* ---- responsive ---- */
@media (max-width: 960px) {
  .auth { grid-template-columns: minmax(0, 1fr); gap: 0; min-height: 0; }
  .auth-card { margin-top: 40vh; padding: 26px 20px 22px; }
  .auth-hero { display: none; }
  .stage-shade { background: linear-gradient(to top, rgba(4,7,14,.95) 0, rgba(4,7,14,.6) 55%, transparent 75%); }
}
@media (max-width: 420px) {
  .otp { gap: 7px; } .otp input { height: 54px; font-size: 22px; }
  .auth-card h1 { font-size: 22px; }
}
