/* ============ SIGN UP PAGE — builds on css/styles.css theme tokens ============ */
body { display: flex; flex-direction: column; min-height: 100vh; }
.auth-main {
  flex: 1;
  display: flex; align-items: center;
  padding: 44px 0 64px;
}

/* ---- shell (split card) ---- */
.auth-shell {
  display: grid;
  grid-template-columns: minmax(400px, 11fr) 9fr;
  max-width: 1060px;
  margin: 0 auto;
  animation: fadeIn 250ms ease-out;
}

/* ---- left: form ---- */
.auth-form-side { padding: 44px 48px 40px; min-width: 0; }

.auth-head { margin-bottom: 30px; }
.auth-eyebrow {
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--brand-bright);
  margin-bottom: 10px;
}
.auth-title {
  font-size: 32px; font-weight: 800;
  color: var(--text); letter-spacing: -0.03em; line-height: 1.1;
}
.auth-title-accent {
  background: var(--accent-gradient);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.auth-sub { font-size: 14px; color: var(--text-muted); margin-top: 10px; line-height: 1.6; }

/* ---- fields ---- */
.field { margin-bottom: 18px; }
.field-label {
  display: block;
  font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.input-wrap {
  display: flex; align-items: center; gap: 10px;
  padding: 0 8px 0 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.input-wrap:focus-within {
  border-color: rgba(253, 29, 96, 0.45);
  box-shadow: 0 0 0 3px rgba(253, 29, 96, 0.12);
}
.input-ico { color: var(--text-subtle); flex-shrink: 0; }
.input-wrap:focus-within .input-ico { color: var(--danger-bright); }
.input-prefix {
  font-family: var(--mono); font-size: 14px;
  color: var(--text-subtle); flex-shrink: 0;
}
.input {
  flex: 1; min-width: 0;
  height: 44px;
  background: transparent; border: none; outline: none;
  color: var(--text);
  font-family: "Manrope", sans-serif; font-size: 14px;
}
.input.mono { font-family: var(--mono); font-size: 13.5px; }
.input::placeholder { color: var(--text-subtle); opacity: 0.7; }
.input-eye {
  width: 32px; height: 32px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 7px;
  color: var(--text-subtle);
  transition: 150ms;
}
.input-eye:hover { color: var(--text); background: var(--surface-3); }

/* ---- password strength ---- */
.pw-meter {
  display: flex; align-items: center; gap: 12px;
  margin-top: 9px;
}
.pw-meter-bar {
  flex: 1; height: 5px;
  background: var(--surface-3);
  border-radius: 3px; overflow: hidden;
}
.pw-meter-fill {
  height: 100%; width: 0;
  border-radius: 3px;
  background: var(--danger);
  transition: width 250ms ease, background 250ms ease;
}
.pw-meter-label {
  font-family: var(--mono); font-size: 11px;
  color: var(--text-subtle);
  white-space: nowrap;
}

/* ---- field validation ---- */
.field-error, .field-ok {
  display: none;
  align-items: center; gap: 6px;
  font-size: 12px; line-height: 1.4;
  margin-top: 7px;
}
.field-error { color: var(--danger-bright); }
.field-error::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--danger); box-shadow: 0 0 6px var(--danger);
  flex-shrink: 0;
}
.field-ok { color: var(--success); }
.field-ok svg { flex-shrink: 0; }
.field.invalid .field-error { display: flex; }
.field.ok .field-ok { display: flex; }
.field.invalid .input-wrap { border-color: rgba(253, 29, 96, 0.55); }
.field.invalid .input-ico { color: var(--danger-bright); }
.field.ok .input-wrap { border-color: rgba(77, 216, 156, 0.4); }
.field.ok .input-ico { color: var(--success); }
.field.ok .input-wrap:focus-within { box-shadow: 0 0 0 3px rgba(77, 216, 156, 0.1); }

/* ---- terms checkbox ---- */
.check-row {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 22px 0;
  cursor: pointer; user-select: none;
}
.check-row input { position: absolute; opacity: 0; pointer-events: none; }
.check-box {
  width: 18px; height: 18px; flex-shrink: 0;
  margin-top: 1px;
  border-radius: 5px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  position: relative;
  transition: 150ms;
}
.check-row:hover .check-box { border-color: var(--text-subtle); }
.check-row input:checked + .check-box {
  background: var(--accent-gradient);
  background-size: 200% auto;
  border-color: transparent;
}
.check-row input:checked + .check-box::after {
  content: "";
  position: absolute; left: 5.5px; top: 2px;
  width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.check-text { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.check-text a { color: var(--brand-bright); font-weight: 600; transition: color 150ms; }
.check-text a:hover { color: var(--accent-color); }
.check-row.shake { animation: shake 320ms ease; }
.check-row.shake .check-box { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(253, 29, 96, 0.15); }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-3px); }
}

/* ---- divider ---- */
.auth-divider {
  display: flex; align-items: center; gap: 14px;
  margin: 22px 0;
  font-size: 11.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-subtle);
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px;
  background: var(--border-faint);
}

/* ---- social buttons ---- */
.social-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.social-btn { justify-content: center; }

.auth-switch {
  text-align: center;
  font-size: 13.5px; color: var(--text-muted);
  margin-top: 24px;
}
.auth-switch a { color: var(--brand-bright); font-weight: 700; transition: color 150ms; }
.auth-switch a:hover { color: var(--accent-color); }

/* spinner used by the submit button */
.spin { animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- right: brand panel ---- */
.auth-panel {
  position: relative; overflow: hidden;
  border-left: 1px solid var(--border-faint);
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(420px 320px at 85% 0%, rgba(253, 29, 96, 0.18), transparent 70%),
    radial-gradient(460px 340px at 10% 100%, rgba(255, 168, 7, 0.13), transparent 72%),
    var(--bg-soft);
  background-size: 28px 28px, 28px 28px, auto, auto, auto;
}
.auth-panel::before {
  content: ""; position: absolute;
  top: 0; right: 0; bottom: 0; width: 4px;
  background: var(--accent-gradient);
}
.auth-panel-inner {
  height: 100%;
  display: flex; flex-direction: column;
  padding: 44px 40px 36px;
}

.panel-pill {
  display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--brand-dim);
  border: 1px solid rgba(255, 168, 7, 0.26);
  color: var(--brand-bright);
  font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 26px;
}
.panel-pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand-bright);
  box-shadow: 0 0 8px var(--brand-bright);
}

.panel-title {
  font-size: 30px; font-weight: 800;
  color: var(--text); letter-spacing: -0.03em; line-height: 1.15;
}
.panel-title-accent {
  background: var(--accent-gradient);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.panel-sub {
  font-size: 14px; color: var(--text-muted);
  line-height: 1.65; margin-top: 12px;
  max-width: 340px;
}

.panel-features {
  display: flex; flex-direction: column; gap: 18px;
  margin-top: 34px;
}
.panel-feature { display: flex; gap: 14px; align-items: flex-start; }
.panel-feature-ico {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--danger-bg);
  border: 1px solid rgba(253, 29, 96, 0.22);
  color: var(--danger-bright);
}
.panel-feature:nth-child(2) .panel-feature-ico {
  background: var(--warning-bg);
  border-color: rgba(255, 168, 7, 0.24);
  color: var(--brand-bright);
}
.panel-feature:nth-child(3) .panel-feature-ico {
  background: var(--success-bg);
  border-color: rgba(77, 216, 156, 0.22);
  color: var(--success);
}
.panel-feature-title { font-size: 14.5px; font-weight: 700; color: var(--text); }
.panel-feature-desc { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; line-height: 1.5; }

.panel-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: auto; padding-top: 34px;
}
.panel-stat {
  padding: 14px 6px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
}
.panel-stat-num {
  font-family: var(--mono);
  font-size: 19px; font-weight: 700;
  color: var(--text); letter-spacing: -0.02em; line-height: 1;
}
.panel-stat-label {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-subtle);
  margin-top: 7px;
}

/* ---- responsive ---- */
@media (max-width: 960px) {
  .auth-shell { grid-template-columns: 1fr; max-width: 560px; }
  .auth-panel { display: none; }
}
@media (max-width: 560px) {
  .auth-form-side { padding: 32px 24px 30px; }
  .auth-title { font-size: 27px; }
  .social-row { grid-template-columns: 1fr; }
}
