/* ==============================================================
   Konevych FDC — Auth + Legal pages
   Extends .bull tokens loaded by bulls-home.css (fonts, colour,
   buttons, nav). Namespace: .bull-auth / .bull-legal
   ============================================================== */

.bull-auth, .bull-legal {
  --ok:      oklch(54% 0.13 152);
  --ok-bg:   oklch(95.5% 0.025 152);
  --err:     oklch(56% 0.19  27);
  --err-bg:  oklch(95.5% 0.03  27);
}

/* ============ AUTH split-screen ============ */

.bull-auth {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 960px) {
  .bull-auth {
    grid-template-columns: minmax(360px, 38vw) 1fr;
    min-height: calc(100svh - 72px);
  }
}

.bull-auth-aside {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--on-navy);
  padding: clamp(var(--s40), 8vw, var(--s64)) var(--gx);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (min-width: 960px) {
  .bull-auth-aside {
    position: sticky;
    top: 72px;
    height: calc(100svh - 72px);
    padding-inline: clamp(var(--s32), 4vw, var(--s64));
  }
}
.bull-auth-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 55% at 88% 8%,
    color-mix(in oklab, var(--orange) 24%, transparent) 0%, transparent 65%);
  pointer-events: none;
}
.bull-auth-aside > * { position: relative; z-index: 1; }

.bull-auth-aside-h {
  font-family: var(--fd);
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 1.5rem + 3vw, 3.8rem);
  line-height: 0.94;
  letter-spacing: -0.01em;
  max-width: 12ch;
  margin-bottom: var(--s24);
}
.bull-auth-aside-h em { font-style: normal; color: var(--orange); }

.bull-auth-aside-sub {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--on-navy-2);
  max-width: 38ch;
  margin-bottom: var(--s32);
}

.bull-auth-aside-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s32);
  padding-top: var(--s24);
  border-top: 1px solid var(--hair-d);
}
.bull-auth-aside-meta dt {
  font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--on-navy-3); margin-bottom: var(--s4);
}
.bull-auth-aside-meta dd {
  font-family: var(--fd); font-weight: 700; font-size: 1.15rem;
  text-transform: uppercase; color: var(--on-navy);
}

.bull-auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 620px;
  margin-inline: auto;
  padding: clamp(var(--s40), 8vw, var(--s80)) var(--gx);
}
.bull-auth-panel--wide { max-width: 760px; }

.bull-auth-h {
  font-family: var(--fd); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2rem, 1.5rem + 2vw, 2.9rem);
  line-height: 0.96; color: var(--navy); margin-bottom: var(--s12);
}
.bull-auth-sub {
  color: var(--ink-2); font-size: 1.05rem; line-height: 1.6;
  max-width: 48ch; margin-bottom: var(--s32);
}
.bull-auth-sub--tight { margin-bottom: var(--s16); }

.bull-auth-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: color-mix(in oklab, var(--orange) 14%, var(--canvas));
  color: var(--orange);
  display: grid; place-items: center;
  margin-bottom: var(--s24);
}
.bull-auth-icon svg { width: 26px; height: 26px; }

.bull-auth-card {
  background: var(--canvas-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(var(--s24), 4vw, var(--s40));
}
.bull-auth-card--centered { text-align: left; }

.bull-auth-note {
  margin-top: var(--s24);
  font-size: 0.95rem;
  color: var(--ink-2);
}
.bull-auth-note a {
  color: var(--navy); font-weight: 700;
  text-decoration: underline; text-underline-offset: 2px;
  transition: color var(--t1) var(--ease);
}
.bull-auth-note a:hover { color: var(--orange); }

/* ---- form ---- */

.bull-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s24);
  margin-bottom: var(--s24);
}
.bull-form-grid--two { gap: var(--s24) var(--s16); }
@media (min-width: 560px) {
  .bull-form-grid--two { grid-template-columns: 1fr 1fr; }
}

.bull-field { display: flex; flex-direction: column; }
.bull-field-label {
  font-family: var(--fb); font-size: var(--t-xs); font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2);
  margin-bottom: var(--s8);
}
.bull-input {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--fb); font-size: 1rem; color: var(--ink);
  background: var(--canvas);
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  transition: border-color var(--t1) var(--ease), box-shadow var(--t1) var(--ease);
}
.bull-input::placeholder { color: var(--ink-3); }
.bull-input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--orange) 28%, transparent);
}
.bull-field.has-error .bull-input { border-color: var(--err); }
.bull-field-error {
  margin-top: var(--s8); font-size: 0.85rem; color: var(--err); line-height: 1.5;
}
.bull-field-error--tight { margin-top: calc(var(--s24) * -1); margin-bottom: var(--s24); }

.bull-check-row {
  display: flex; align-items: flex-start; gap: var(--s12);
  margin-bottom: var(--s24); font-size: 0.95rem; line-height: 1.5; color: var(--ink-2);
}
.bull-check-row a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.bull-check-row a:hover { color: var(--orange); }
.bull-check-row input[type="checkbox"] {
  appearance: none;
  position: relative;
  flex-shrink: 0;
  width: 20px; height: 20px; margin-top: 2px;
  border: 1.5px solid var(--line); border-radius: 3px;
  background: var(--canvas);
  cursor: pointer;
  transition: background var(--t1) var(--ease), border-color var(--t1) var(--ease);
}
.bull-check-row input[type="checkbox"]:checked {
  background: var(--orange); border-color: var(--orange);
}
.bull-check-row input[type="checkbox"]:checked::after {
  content: "";
  position: absolute; left: 6px; top: 2px;
  width: 5px; height: 10px;
  border: solid var(--on-orange);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.bull-check-row input[type="checkbox"]:focus-visible {
  outline: 2.5px solid var(--orange); outline-offset: 2px;
}

.bull-auth-forgot { margin: calc(var(--s24) * -1) 0 var(--s24); font-size: 0.9rem; }
.bull-auth-forgot a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.bull-auth-forgot a:hover { color: var(--orange); }

.bull-auth-submit .bull-btn { width: 100%; justify-content: center; }

/* ---- messages / alerts ---- */

.bull-messages { margin-bottom: var(--s24); display: flex; flex-direction: column; gap: var(--s12); }
.bull-alert {
  padding: 14px 18px;
  border-radius: var(--r);
  font-size: 0.95rem; line-height: 1.5;
}
.bull-alert--error   { background: var(--err-bg); color: var(--err); }
.bull-alert--success { background: var(--ok-bg);  color: var(--ok); }
.bull-alert--info, .bull-alert--warning {
  background: var(--canvas); color: var(--ink-2); border: 1px solid var(--line);
}

/* ============ LEGAL (club policy / terms) ============ */

.bull-legal-hero {
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(var(--s48), 8vw, var(--s96)) var(--gx) clamp(var(--s32), 5vw, var(--s48));
}
.bull-legal-h {
  font-family: var(--fd); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.2rem, 1.5rem + 3vw, 4rem); line-height: 0.94;
  color: var(--navy); margin-bottom: var(--s12);
}
.bull-legal-sub { color: var(--ink-2); font-size: 1.05rem; max-width: 60ch; }

.bull-legal-content {
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 var(--gx) clamp(var(--s64), 8vw, var(--s96));
}
.bull-legal-card { max-width: 74ch; margin-inline: auto; }
.bull-legal-card h2 {
  font-family: var(--fd); font-weight: 800; text-transform: uppercase;
  font-size: 1.4rem; letter-spacing: 0.01em; color: var(--navy);
  margin: var(--s48) 0 var(--s16);
}
.bull-legal-card h2:first-child { margin-top: 0; }
.bull-legal-card p {
  color: var(--ink-2); font-size: 1.05rem; line-height: 1.75; margin-bottom: var(--s16);
}
.bull-legal-card ul {
  margin: 0 0 var(--s16); padding-left: 1.3em; color: var(--ink-2); line-height: 1.75;
}
.bull-legal-card li { margin-bottom: var(--s8); }
.bull-legal-card strong { color: var(--ink); font-weight: 700; }
.bull-legal-card a { color: var(--orange); text-decoration: underline; text-underline-offset: 2px; }
.bull-legal-reviewed { color: var(--ink-3); font-size: 0.95rem; margin-top: var(--s32); }
.bull-legal-back { margin-top: var(--s48); padding-top: var(--s24); border-top: 1px solid var(--line); }
.bull-legal-back a {
  font-family: var(--fd); font-weight: 700; text-transform: uppercase; font-size: 0.95rem;
  letter-spacing: 0.04em; color: var(--navy); text-decoration: none;
}
.bull-legal-back a:hover { color: var(--orange); }

@media (prefers-reduced-motion: reduce) {
  .bull-input, .bull-check-row input[type="checkbox"] { transition: none; }
}
