/* =============================================================
   signup.css — Avalon Heroes Sign-up Page
   Standalone — does NOT depend on style.css
   ============================================================= */

@font-face {
  font-family: 'TitanOne';
  src: url('../assets/Fonts/TitanOne-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #0b1b3a;
  background:
    radial-gradient(1100px 700px at 50% -220px, rgba(255,255,255,.35), transparent 70%),
    linear-gradient(180deg, #2f7dff 0%, #246ae9 36%, #184fbf 70%, #0c2f7a 100%);
  background-attachment: fixed;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Page shell ── */
.su-page {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  height: 100vh;
  overflow: hidden;
}

@media (max-width: 980px) {
  .su-page { grid-template-columns: 1fr; }
  .su-right { display: none; }
}

/* ── Left column ── */
.su-left {
  padding: clamp(18px, 3vw, 36px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

/* ── Card ── */
.su-card {
  width: min(680px, 100%);
  background: rgba(255,255,255,0.95);
  border-radius: 18px;
  padding: 24px clamp(18px, 3vw, 34px);
  box-shadow: 0 18px 50px rgba(0,0,0,.18);
  color: #0b1b3a;
}

/* ── Card header ── */
.su-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.su-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}
.su-brand img { height: 42px; }

.su-header-btns {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ── Ghost buttons (Back / Log in) ── */
.su-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 2px solid rgba(0,0,0,.14);
  background: rgba(0,0,0,.06);
  color: #0b1b3a;
  font-weight: 900;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,.08);
  transition: background .12s, transform .12s;
  font-family: inherit;
}
.su-ghost:hover { background: rgba(0,0,0,.10); transform: translateY(-1px); }
.su-ghost.subtle { opacity: .7; }

/* ── Steps ── */
.su-step { display: none; }
.su-step.active { display: block; }

/* ── Titles ── */
.su-title {
  text-align: center;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  margin: 4px 0 4px;
}

.su-subtitle {
  text-align: center;
  font-size: 13px;
  color: rgba(11,27,58,.72);
  margin-bottom: 14px;
}

/* ── Role grid ── */
.su-role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 14px 0 6px;
}

@media (max-width: 520px) {
  .su-role-grid { grid-template-columns: 1fr; }
}

.su-role {
  position: relative;
  padding: 20px 18px 18px;
  border-radius: 20px;
  text-align: center;
  cursor: pointer;
  user-select: none;
  background:
    radial-gradient(120% 90% at 50% 0%,
      rgba(255,255,255,.96),
      rgba(245,248,255,.93) 55%,
      rgba(235,242,255,.90) 100%);
  border: 2px solid rgba(20,55,120,.18);
  box-shadow: 0 16px 34px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.85);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.su-role:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.9);
}

.su-role img {
  width: 200px;
  height: 175px;
  margin: 4px auto 10px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.18)) drop-shadow(0 0 18px rgba(42,123,255,.18));
}

.su-role .su-role-label {
  font-size: 20px;
  font-weight: 900;
}

.su-role .su-role-desc {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(11,27,58,.72);
}

.su-role.selected {
  border-color: rgba(0,140,255,.95);
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 26px 56px rgba(0,140,255,.18), 0 18px 40px rgba(0,0,0,.14);
}

.su-role.selected::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 22px;
  border: 3px solid rgba(0,140,255,.35);
}

.su-role:focus-visible {
  outline: 3px solid rgba(0,140,255,.70);
  outline-offset: 3px;
}

/* ── Action buttons ── */
.su-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.su-btn {
  min-width: 210px;
  padding: 11px 14px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 14px;
  font-family: inherit;
  border: none;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(0,0,0,.10);
  transition: filter .12s, opacity .12s;
}

.su-btn.primary {
  background: rgba(0,140,255,.92);
  color: white;
}
.su-btn.primary:hover { filter: brightness(1.06); }

.su-btn.secondary {
  background: rgba(0,0,0,.08);
  color: #0b1b3a;
}
.su-btn.secondary:hover { background: rgba(0,0,0,.13); }

.su-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  filter: none;
}

/* ── Age gate ── */
.su-age-box {
  margin: 18px auto 8px;
  max-width: 520px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(240,245,255,.95);
  border: 2px solid rgba(0,0,0,.10);
}

.su-age-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

/* Force native checkbox — immune to any injected global styles */
.su-age-row input[type="checkbox"] {
  -webkit-appearance: checkbox !important;
  appearance: checkbox !important;
  display: inline-block !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  flex: 0 0 18px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: revert !important;
  background: revert !important;
  cursor: pointer;
}

.su-age-row label {
  font-weight: 800;
  cursor: pointer;
  line-height: 1.4;
}

/* ── Fine print / notes ── */
.su-note,
.su-fineprint {
  font-size: 12px;
  color: rgba(11,27,58,.6);
  text-align: center;
  margin-top: 10px;
  line-height: 1.5;
}

.su-fineprint a {
  color: rgba(0,100,220,.80);
  text-decoration: underline;
}

/* ── Email / login form elements ── */
.su-form {
  max-width: 520px;
  margin: 0 auto;
}

.su-label {
  display: block;
  font-weight: 800;
  font-size: 13px;
  color: rgba(11,27,58,.80);
  margin-bottom: 5px;
}

.su-input {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 2px solid rgba(0,0,0,.14);
  background: rgba(240,245,255,.95);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #0b1b3a;
  outline: none;
  transition: border-color .12s;
}

.su-input:focus {
  border-color: rgba(0,140,255,.70);
}

.su-error {
  margin-top: 8px;
  padding: 9px 13px;
  border-radius: 10px;
  background: rgba(255,60,60,.10);
  border: 1.5px solid rgba(255,60,60,.30);
  color: #c00;
  font-size: 13px;
  font-weight: 800;
}

.su-inline-link {
  background: none;
  border: none;
  padding: 0;
  color: rgba(0,100,220,.80);
  font-family: inherit;
  font-size: inherit;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

/* ── Right column (gem panel) ── */
.su-right {
  position: relative;
  background: linear-gradient(135deg, rgba(0,180,255,.9), rgba(0,110,255,.9));
  overflow: hidden;
}

.su-right::before {
  content: "";
  position: absolute;
  inset: -40px;
  background-image: url("../assets/signup_pattern.png");
  background-size: 380px 380px;
  opacity: .16;
  transform: rotate(-8deg);
}

.su-right-inner {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: white;
  text-align: center;
  padding: 24px;
}

.su-right-hero {
  width: min(420px, 85%);
  filter: drop-shadow(0 20px 28px rgba(0,0,0,.25));
  border-radius: 18px;
}

.su-right-tagline {
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 900;
}
