:root { --pr: #8B5CF6; --bg: #08080C; --radius-sm: 8px; }
html { background: #08080C; }
body {
  min-height: 100vh; margin: 0; display: flex; flex-direction: column;
  background: #08080C; color: #d4d4d8; font-family: 'Inter', system-ui, sans-serif;
}
.wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 96px 20px 48px; position: relative; overflow: hidden; }
.bg {
  position: fixed; inset: 0; z-index: 0;
  background: url('/img/steamwp3.jpg') center / cover no-repeat;
  animation: bgPan 28s ease-in-out infinite alternate; will-change: transform;
}
.bg::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 120% at 50% 40%, rgba(8,8,12,.72), rgba(8,8,12,.93));
}
@keyframes bgPan {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.08) translate(-1.5%, -1%); }
}
.glow { position: fixed; border-radius: 50%; pointer-events: none; z-index: 0; }
.glow.g1 { width: 820px; height: 820px; top: -230px; left: -230px; background: radial-gradient(circle, rgba(139,92,246,.5), transparent 70%); }
.glow.g2 { width: 620px; height: 620px; bottom: -180px; right: -180px; background: radial-gradient(circle, rgba(139,92,246,.35), transparent 70%); }
.glow.g3 { width: 500px; height: 500px; top: 50%; left: 50%; transform: translate(-50%,-50%); background: radial-gradient(circle, rgba(109,40,217,.3), transparent 70%); }
.card {
  position: relative; z-index: 1; width: 400px; max-width: 94vw;
  background: rgba(13,14,18,.85); border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px; padding: 32px 32px 28px; box-shadow: 0 24px 80px rgba(0,0,0,.5);
}
.logo { text-align: center; margin-bottom: 8px; }
.logo b {
  font-size: 30px; letter-spacing: 6px; font-weight: 800; display: inline-block;
  background: linear-gradient(90deg, #ffffff 0%, #c4b5fd 30%, #8b5cf6 50%, #c4b5fd 70%, #ffffff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-fill-color: transparent;
  animation: brandShimmer 7s linear infinite;
  filter: drop-shadow(0 0 12px rgba(139,92,246,.30));
}
@keyframes brandShimmer { 0% { background-position: 0% 50%; } 100% { background-position: 220% 50%; } }
.logo span { display: block; font-size: 11px; color: #8b87a0; letter-spacing: 2.5px; text-transform: uppercase; margin-top: 6px; }
h1 { font-size: 18px; color: #fff; text-align: center; margin: 14px 0 4px; font-weight: 700; }
.sub { font-size: 13px; color: #a1a1aa; text-align: center; margin-bottom: 8px; }
label { display: block; font-size: 11px; color: #8b87a0; text-transform: uppercase; letter-spacing: .6px; margin: 14px 0 6px; }
input, select {
  width: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03); color: #fff; font-size: 14px; outline: none; font-family: inherit;
  box-sizing: border-box; transition: border-color .15s;
}
input:focus, select:focus { border-color: #8B5CF6; }
select { appearance: none; -webkit-appearance: none; }
select option { color: #fff; background: #15151d; }
.pwwrap { position: relative; }
.pwwrap input { padding-right: 42px; }
.pw-eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border: none; background: transparent; color: #8b87a0;
  cursor: pointer; border-radius: 6px; font-family: inherit;
}
.pw-eye:hover { color: #c4b5fd; background: rgba(139,92,246,.12); }
.btn {
  width: 100%; padding: 12px 22px; margin-top: 20px; border: none; border-radius: 8px;
  cursor: pointer; font-size: 12px; font-weight: 600; color: #fff; letter-spacing: .5px;
  text-transform: uppercase; background: #8B5CF6; font-family: inherit;
  transition: background .15s, transform .1s;
}
.btn:hover { background: #7C3AED; }
.btn:active { background: #6D28D9; transform: scale(0.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.err { min-height: 18px; margin-top: 14px; font-size: 13px; text-align: center; color: #f87171; }
.foot { text-align: center; font-size: 12px; color: #52525b; padding: 0 0 22px; }
.foot a { color: #a78bfa; text-decoration: none; }
.hidden { display: none !important; }
.spinner {
  width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff;
  border-radius: 50%; display: inline-block; vertical-align: -2px; margin-right: 8px;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.link-line { text-align: center; margin-top: 14px; font-size: 13px; color: #a1a1aa; }
.link-line a { color: #a78bfa; text-decoration: none; }
