/* Arena HUD auth — techy modern · 2026-09-24 */
:root {
  --navy: #050910;
  --navy-2: #0a1422;
  --ice: #4EC8E8;
  --ice-dim: rgba(78, 200, 232, 0.18);
  --ice-glow: rgba(78, 200, 232, 0.45);
  --ink: #e8edf4;
  --muted: #8b98a8;
  --danger: #ff6b7a;
  --ok: #5dffa8;
  --radius: 8px;
  --mono: "Share Tech Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: Manrope, system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.auth-hud {
  font-family: var(--body);
  color: var(--ink);
  background: var(--navy);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
.auth-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(78,200,232,.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(78,200,232,.06), transparent 50%),
    var(--navy);
}
.auth-bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(78,200,232,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78,200,232,.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}
.auth-bg::after {
  content: "";
  position: absolute; inset: -20%;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(78,200,232,.015) 3px,
      rgba(78,200,232,.015) 4px
    );
  animation: auth-scan 12s linear infinite;
  opacity: .7;
}
.auth-court {
  position: absolute; left: 50%; top: 42%;
  width: min(920px, 140vw); height: 280px;
  transform: translate(-50%, -50%) perspective(600px) rotateX(58deg);
  border: 1px solid rgba(78,200,232,.14);
  border-radius: 4px;
  box-shadow: 0 0 60px rgba(78,200,232,.06), inset 0 0 40px rgba(78,200,232,.04);
}
.auth-court::before {
  content: "";
  position: absolute; left: 50%; top: 0; bottom: 0; width: 1px;
  background: rgba(78,200,232,.2);
  box-shadow: 0 0 12px var(--ice-glow);
  animation: auth-pulse 3.2s ease-in-out infinite;
}
.auth-court::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 72px; height: 72px;
  margin: -36px 0 0 -36px;
  border: 1px solid rgba(78,200,232,.22);
  border-radius: 50%;
}
@keyframes auth-scan {
  from { transform: translateY(0); }
  to { transform: translateY(48px); }
}
@keyframes auth-pulse {
  0%, 100% { opacity: .45; }
  50% { opacity: 1; }
}
@keyframes auth-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}
@keyframes auth-spin {
  to { transform: rotate(360deg); }
}
@keyframes auth-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(78,200,232,.0), 0 0 24px rgba(78,200,232,.08); }
  50% { box-shadow: 0 0 0 1px rgba(78,200,232,.25), 0 0 32px rgba(78,200,232,.18); }
}
@media (prefers-reduced-motion: reduce) {
  .auth-bg::after, .auth-court::before, .auth-panel { animation: none !important; }
  .auth-btn.is-loading .auth-btn__spin { animation: none; }
  .auth-err.is-shake { animation: none; }
}

.auth-shell {
  position: relative; z-index: 1;
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: max(24px, env(safe-area-inset-top)) 16px max(28px, env(safe-area-inset-bottom));
  width: 100%;
}
.auth-brand {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
  text-decoration: none; color: inherit;
}
.auth-brand__mark {
  width: 40px; height: 40px; border-radius: var(--radius);
  display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(78,200,232,.25), rgba(78,200,232,.05));
  border: 1px solid rgba(78,200,232,.4);
  box-shadow: 0 0 20px rgba(78,200,232,.2);
  font-family: var(--display);
  font-weight: 800; font-size: 18px; letter-spacing: .04em;
  color: var(--ice);
}
.auth-brand__text {
  font-family: var(--display);
  font-weight: 700; font-size: 20px; letter-spacing: .06em;
  text-transform: uppercase;
}
.auth-brand__sub {
  display: block;
  font-family: var(--mono);
  font-size: 10px; letter-spacing: .16em;
  color: var(--muted); text-transform: uppercase;
  margin-top: 2px;
}

.auth-panel {
  width: 100%; max-width: 420px;
  position: relative;
  background: linear-gradient(165deg, rgba(10,20,34,.82), rgba(5,9,16,.92));
  border: 1px solid rgba(78,200,232,.28);
  border-radius: var(--radius);
  padding: 28px 24px 24px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: auth-glow 5s ease-in-out infinite;
  box-shadow: 0 24px 64px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.04);
}
.auth-panel__corner {
  position: absolute; width: 14px; height: 14px;
  border-color: var(--ice); border-style: solid; opacity: .85;
  pointer-events: none;
}
.auth-panel__corner--tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.auth-panel__corner--tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.auth-panel__corner--bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.auth-panel__corner--br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.auth-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ice);
  margin: 0 0 10px;
}
.auth-status__dot {
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--ice);
  box-shadow: 0 0 10px var(--ice-glow);
}
.auth-title {
  font-family: var(--display);
  font-weight: 800; font-size: clamp(28px, 7vw, 36px);
  line-height: 1; letter-spacing: .02em;
  text-transform: uppercase; margin: 0 0 8px;
}
.auth-lede {
  margin: 0 0 22px; color: var(--muted); font-size: 14px; line-height: 1.45;
}

.auth-field { margin-bottom: 14px; }
.auth-label {
  display: block;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ice);
  margin-bottom: 6px;
}
.auth-input-wrap { position: relative; }
.auth-input {
  width: 100%; height: 48px;
  padding: 0 44px 0 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(78,200,232,.28);
  background: rgba(5,9,16,.75);
  color: var(--ink);
  font-size: 16px; font-family: var(--body);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.auth-input:focus {
  border-color: var(--ice);
  box-shadow: 0 0 0 3px rgba(78,200,232,.22), 0 0 20px rgba(78,200,232,.12);
}
.auth-input::placeholder { color: #5a6778; }
.auth-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  height: 36px; min-width: 36px; padding: 0 8px;
  border: 0; border-radius: 6px;
  background: transparent; color: var(--muted);
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em;
  text-transform: uppercase; cursor: pointer;
}
.auth-toggle:hover, .auth-toggle:focus-visible { color: var(--ice); outline: none; }

.auth-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin: 4px 0 18px;
}
.auth-check {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted); cursor: pointer; user-select: none;
}
.auth-check input {
  width: 16px; height: 16px; accent-color: var(--ice);
  border-radius: 4px;
}
.auth-link {
  font-size: 13px; color: var(--ice); text-decoration: none;
}
.auth-link:hover { text-decoration: underline; }

.auth-btn {
  width: 100%; height: 48px;
  border: 0; border-radius: var(--radius);
  background: linear-gradient(180deg, #6ad4ef, var(--ice));
  color: #050910;
  font-family: var(--display);
  font-weight: 800; font-size: 18px; letter-spacing: .08em;
  text-transform: uppercase; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 0 24px rgba(78,200,232,.25);
  transition: filter .15s, transform .1s;
}
.auth-btn:hover { filter: brightness(1.06); }
.auth-btn:active { transform: translateY(1px); }
.auth-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(78,200,232,.35), 0 0 24px rgba(78,200,232,.3);
}
.auth-btn:disabled { opacity: .72; cursor: wait; }
.auth-btn__spin {
  width: 16px; height: 16px;
  border: 2px solid rgba(5,9,16,.25);
  border-top-color: #050910;
  border-radius: 50%;
  animation: auth-spin .7s linear infinite;
  display: none;
}
.auth-btn.is-loading .auth-btn__spin { display: block; }
.auth-btn.is-loading .auth-btn__label { opacity: .85; }

.auth-err {
  min-height: 0;
  margin: 0 0 14px;
  padding: 0;
  font-size: 13px; color: var(--danger);
  font-family: var(--body);
}
.auth-err:not(:empty) {
  padding: 10px 12px;
  border: 1px solid rgba(255,107,122,.35);
  background: rgba(255,107,122,.08);
  border-radius: var(--radius);
}
.auth-err.is-shake { animation: auth-shake .4s ease; }
.auth-ok {
  margin: 0 0 14px; padding: 10px 12px;
  border: 1px solid rgba(93,255,168,.3);
  background: rgba(93,255,168,.08);
  border-radius: var(--radius);
  color: var(--ok); font-size: 13px;
}

.auth-footer {
  margin-top: 18px;
  text-align: center;
  font-size: 13px; color: var(--muted);
  line-height: 1.5;
}
.auth-footer a { color: var(--ice); text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }
.auth-meta {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
  text-align: center;
}

@media (max-width: 420px) {
  .auth-panel { padding: 24px 18px 20px; }
  .auth-court { opacity: .55; }
}

/* SSCMS_UXFIX 20261013 (Make-it-easier): phone tap targets >= 44px on the sign-in page */
.auth-link,.auth-footer a,.auth-meta a{display:inline-flex;align-items:center;min-height:44px;padding:0 6px}
.auth-meta a{padding:0 10px}
.auth-check{min-height:44px;display:inline-flex;align-items:center;gap:10px}
.auth-check input{width:22px;height:22px}
