/* ══════════════════════════════════════════════════════════════════════════
   Poker Super League — Registration page styles.

   Loads on top of `styles.css` (which supplies the Nocturne tokens, the base
   reset, the shared `.site-nav` / `.nav-*` and `.text-muted`). This file adds
   the registration-only components: the outlined Log in button, the cinematic
   left panel + its HUD, and the two-step form. Values ported from
   `PSL Register.dc.html` and the handoff Design Tokens.
   ══════════════════════════════════════════════════════════════════════════ */

/* Nav: outlined "Log in" button (replaces the home page's Register button) */
.btn-login {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid color-mix(in srgb, #fff 22%, transparent); color: #fff;
  font-family: var(--font-heading); font-weight: 600; font-size: 15px;
  padding: 9px 20px; border-radius: 9px; text-decoration: none; white-space: nowrap;
}
.btn-login:hover { background: color-mix(in srgb, #fff 8%, transparent); color: #fff; }

/* Page layout: nav + two-column grid filling the viewport */
.rg-page { min-height: 100vh; background: var(--color-bg); color: var(--color-text); font-family: var(--font-body); display: flex; flex-direction: column; }
.rg-grid {
  flex: 1; display: grid; grid-template-columns: 1.05fr 1fr;
  max-width: 1280px; width: 100%; margin: 0 auto; align-items: stretch;
}

/* ── Left cinematic panel (decorative; hidden < 960px) ── */
.rg-left { position: relative; overflow: hidden; min-height: 640px; background: var(--hero-ground); display: flex; }
.rg-left .rg-portrait { position: absolute; inset: 0; }
.rg-left .rg-portrait img { width: 100%; height: 100%; object-fit: cover; }
.rg-scrim { position: absolute; inset: 0; pointer-events: none; }
.rg-scrim.a { background: linear-gradient(115deg, rgba(5,6,10,.72) 0%, rgba(5,6,10,.35) 46%, rgba(5,6,10,.6) 100%); }
.rg-scrim.b { background: linear-gradient(0deg, rgba(5,6,10,.96) 0%, rgba(5,6,10,.1) 42%, transparent 66%); }
.rg-scrim.lines { background: repeating-linear-gradient(0deg, rgba(120,160,180,.05) 0 1px, transparent 1px 4px); mix-blend-mode: overlay; }
.rg-scan {
  position: absolute; left: 0; right: 0; height: 56px;
  background: linear-gradient(180deg, transparent, rgba(55,211,145,.1), transparent);
  animation: rgScan 6s linear infinite; pointer-events: none;
}

.rg-hud { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; pointer-events: none; }
.rg-hud-h { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.rg-hud-h::before { content: ""; width: 9px; height: 9px; flex: none; }
.rg-g .rg-hud-h { color: #37d391; } .rg-g .rg-hud-h::before { background: #37d391; box-shadow: 0 0 8px #37d391; }
.rg-b .rg-hud-h { color: var(--psl-blue); } .rg-b .rg-hud-h::before { background: var(--psl-blue); box-shadow: 0 0 8px var(--psl-blue); }
.rg-row { display: flex; gap: 10px; font-size: 11px; letter-spacing: .05em; margin-top: 3px; color: rgba(220,230,240,.5); }
.rg-row b { color: rgba(230,240,250,.9); font-weight: 600; }
.rg-k { color: rgba(180,195,210,.55); min-width: 78px; }
.rg-hud-corner { position: absolute; top: -11px; left: -14px; width: 16px; height: 16px; border: 1px solid rgba(55,211,145,.5); border-right: 0; border-bottom: 0; }

.rg-hud-seat { position: absolute; top: 34px; left: 34px; animation: rgFlick 7s infinite; }
.rg-telemetry { position: absolute; inset: 0; animation: rgFlick 7s infinite; }
.rg-telemetry[hidden] { display: none; }
.rg-telemetry .rg-new { position: absolute; top: 112px; left: 36px; }
.rg-telemetry .rg-slot { position: absolute; bottom: 150px; left: 36px; }

.rg-lockup { position: relative; align-self: flex-end; padding: 0 40px 48px; animation: rgRise .7s both; }
.rg-pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--psl-red) 50%, transparent);
  font-family: ui-monospace, Menlo, monospace; font-size: 11px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: 20px;
}
.rg-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--psl-red); animation: rgGlow 1.6s infinite; }
.rg-lockup h2 {
  font-family: var(--font-heading); font-weight: 900; text-transform: uppercase;
  line-height: .9; letter-spacing: -.015em; font-size: clamp(34px, 4vw, 52px); margin: 0; color: #fff;
}
.rg-lockup h2 .accent { color: var(--psl-red); }
.rg-lockup p { max-width: 340px; margin: 18px 0 0; font-size: 16px; line-height: 1.55; color: rgba(220,228,240,.72); }

/* ── Right form column ── */
.rg-right { display: flex; align-items: center; justify-content: center; padding: clamp(28px, 5vw, 56px) clamp(20px, 5vw, 64px); }
.rg-form-wrap { width: 100%; max-width: 440px; }

.rg-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.rg-kicker { font-family: ui-monospace, Menlo, monospace; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--psl-blue); }
.rg-steps { display: flex; align-items: center; gap: 6px; }
.rg-step-bar { width: 22px; height: 4px; border-radius: 2px; background: rgba(120,135,155,.35); }
.rg-step-bar.on { background: var(--psl-blue); }
.rg-h1 { font-family: var(--font-heading); font-weight: 800; font-size: clamp(28px, 4vw, 34px); letter-spacing: -.02em; margin: 0 0 8px; color: #fff; }
.rg-sub { font-size: 15px; margin: 0 0 26px; }
.rg-sub a { font-weight: 600; }

/* Providers */
.rg-providers { display: grid; grid-template-columns: 1fr; gap: 10px; }
.rg-prov {
  display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 14px;
  border-radius: 10px; border: 1px solid var(--color-divider); background: #0c0e15; color: #fff;
  font-family: var(--font-heading); font-weight: 600; font-size: 14.5px; cursor: pointer;
  text-decoration: none; transition: background .15s, border-color .15s;
}
.rg-prov:hover { background: #141824; border-color: color-mix(in srgb, #fff 24%, transparent); color: #fff; }
.rg-prov svg { flex: none; }

.rg-divider { display: flex; align-items: center; gap: 14px; margin: 24px 0; }
.rg-divider .rule { flex: 1; height: 1px; }
.rg-divider .rule.l { background: linear-gradient(90deg, transparent, var(--color-divider)); }
.rg-divider .rule.r { background: linear-gradient(90deg, var(--color-divider), transparent); }
.rg-divider span { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(200,210,225,.45); }

/* Form fields */
.rg-form { display: flex; flex-direction: column; gap: 18px; }
.rg-name-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rg-dob-row { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 10px; }

.rg-lbl { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(210,220,235,.7); margin-bottom: 8px; }
.rg-input {
  width: 100%; box-sizing: border-box; background: #0c0e15; border: 1px solid var(--color-divider);
  border-radius: 10px; color: var(--color-text); font-family: var(--font-body); font-size: 15px;
  padding: 13px 14px; transition: border-color .15s, box-shadow .15s; outline: none;
}
.rg-input::placeholder { color: rgba(200,210,225,.32); }
.rg-input:focus, .rg-input:focus-visible { border-color: var(--psl-blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--psl-blue) 22%, transparent); outline: none; }

/* Native select chevron (inline SVG data URI, matching prototype) */
select.rg-input {
  appearance: none; -webkit-appearance: none; color-scheme: dark;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12" fill="none" stroke="%23808a9a" stroke-width="1.6"><path d="M2 4l4 4 4-4"/></svg>');
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; cursor: pointer;
}
select.rg-input.dob { background-position: right 12px center; padding-right: 30px; }

/* Password field with an inline show/hide toggle (register + login) */
.rg-input-wrap { position: relative; }
.rg-input.has-affix { padding-right: 46px; }
.rg-eye {
  position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; display: grid; place-items: center;
  background: none; border: 0; cursor: pointer; border-radius: 8px;
  color: rgba(200, 210, 225, .6);
}
.rg-eye:hover { color: #fff; background: color-mix(in srgb, #fff 8%, transparent); }
.rg-eye:focus-visible { outline: 2px solid var(--psl-blue); outline-offset: 0; }
.rg-eye svg { display: block; }

/* Status / error note (register + login) */
.rg-note {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px;
  background: color-mix(in srgb, var(--psl-blue) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--psl-blue) 40%, transparent);
  color: #a9dbf2; font-size: 14px; line-height: 1.45;
}
.rg-note[hidden] { display: none; }
.rg-note svg { flex: none; }
.rg-note.error {
  background: color-mix(in srgb, #e11d2a 12%, transparent);
  border-color: color-mix(in srgb, #e11d2a 40%, transparent);
  color: #f2909a;
}

.rg-submit {
  width: 100%; box-sizing: border-box; background: var(--psl-red); color: #fff;
  font-family: var(--font-heading); font-weight: 700; font-size: 16px; padding: 15px;
  border: none; border-radius: 11px; cursor: pointer; letter-spacing: .01em; transition: filter .15s;
}
.rg-submit:hover { filter: brightness(1.12); }
.rg-submit:disabled { opacity: .45; cursor: not-allowed; filter: none; }

.rg-legal { font-size: 12.5px; line-height: 1.5; margin: 2px 0 0; text-align: center; }
.rg-hint { font-size: 12.5px; margin: 8px 0 0; color: color-mix(in srgb, var(--color-text) 52%, transparent); }

/* ── Step 2: profile photo ── */
.rg-step2 { display: flex; flex-direction: column; gap: 22px; }
.rg-avatar-help { font-size: 14px; line-height: 1.5; max-width: 320px; }

.rg-step2-actions { display: flex; flex-direction: column; gap: 12px; }
.rg-skip {
  background: none; border: none; cursor: pointer; font-family: var(--font-heading);
  font-weight: 600; font-size: 14px; color: rgba(200,210,225,.6); padding: 6px;
}
.rg-skip:hover { color: rgba(220,230,245,.85); }
.rg-skip[hidden] { display: none; }

.rg-success {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px;
  background: color-mix(in srgb, #37d391 14%, transparent); border: 1px solid color-mix(in srgb, #37d391 40%, transparent);
  color: #7ce6b4; font-size: 14px;
}
.rg-success[hidden] { display: none; }
.rg-success b { color: #b6f2d6; }
.rg-success svg { flex: none; }

/* Step visibility */
.rg-step[hidden] { display: none; }

/* ── Step navigation (Back + Continue/Finish) ── */
.rg-step-nav { display: flex; gap: 12px; align-items: stretch; margin-top: 4px; }
.rg-step-nav .rg-submit { flex: 1; }
.rg-back-btn {
  flex: none; background: none; border: 1px solid var(--color-divider); color: var(--color-text);
  font-family: var(--font-heading); font-weight: 600; font-size: 14px; padding: 0 20px;
  border-radius: 11px; cursor: pointer; transition: background .15s;
}
.rg-back-btn:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }

/* ── Step 2: pass selection ── */
.rg-passes { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.rg-pass {
  position: relative; display: block; width: 100%; text-align: left; cursor: pointer;
  padding: 15px 16px; border-radius: 12px; background: #0c0e15;
  border: 1px solid var(--color-divider); color: var(--color-text); font: inherit;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.rg-pass:hover { border-color: color-mix(in srgb, var(--psl-blue) 50%, transparent); }
.rg-pass[aria-checked="true"] {
  border-color: var(--psl-red); box-shadow: inset 0 0 0 1px var(--psl-red);
  background: color-mix(in srgb, var(--psl-red) 8%, #0c0e15);
}
.rg-pass:focus-visible { outline: 2px solid var(--psl-blue); outline-offset: 2px; }
.rg-pass-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.rg-pass-name { font-family: var(--font-heading); font-weight: 700; font-size: 15px; color: #fff; }
/* Badge as a ribbon straddling the card's top edge. */
.rg-pass-badge {
  position: absolute; top: -9px; left: 16px;
  font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: #fff; padding: 3px 9px; border-radius: 999px; white-space: nowrap;
}
.rg-pass-badge.popular { background: var(--psl-red); }
.rg-pass-badge.value { background: color-mix(in srgb, var(--psl-blue) 88%, transparent); }
.rg-pass-price { font-family: var(--font-heading); font-weight: 800; font-size: 20px; color: #fff; white-space: nowrap; }
.rg-pass-price small { font-weight: 500; font-size: 12px; color: rgba(200, 210, 225, .55); margin-left: 3px; }
.rg-pass-blurb { font-size: 13px; line-height: 1.45; margin: 6px 0 0; color: rgba(200, 210, 225, .62); }

/* ── Step 3: configuration ── */
.rg-config { display: flex; flex-direction: column; gap: 24px; }


/* ── Responsive ── */
@media (max-width: 960px) {
  .rg-left { display: none; }
  .rg-grid { grid-template-columns: 1fr; }
}

/* ── Keyframes ── */
@keyframes rgGlow { 0%,100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes rgScan { 0% { transform: translateY(-30px); } 100% { transform: translateY(100%); } }
@keyframes rgFlick { 0%,97%,100% { opacity: 1; } 98% { opacity: .5; } }
@keyframes rgRise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .rg-scan, .rg-hud-seat, .rg-telemetry, .rg-pill .dot, .rg-lockup { animation: none !important; }
}
