/* ═══════════════════════════════════════════════
   OneProtocol — Register Page (mobile-first)
═══════════════════════════════════════════════ */

.reg-body {
  min-height: 100vh;
  background: var(--bg);
}

/* ── Header ── */
.reg-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px 0;
}

.reg-logo {
  height: 32px;
  width: auto;
  mix-blend-mode: screen;
}

/* ── Main ── */
.reg-main {
  display: flex;
  justify-content: center;
  padding: 28px 16px 48px;
}

.reg-wrap {
  width: 100%;
  max-width: 480px;
}

/* ── Hero ── */
.reg-hero {
  text-align: center;
  margin-bottom: 28px;
}

.reg-title {
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: -.03em;
  margin-bottom: 10px;
}

.reg-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.reg-pill {
  font-size: .75rem;
  font-weight: 600;
  color: var(--txt2);
}

.reg-pill-dot {
  color: var(--muted);
  font-size: .75rem;
}

/* ── Sections ── */
.reg-section {
  background: #16161a;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 18px;
  margin-bottom: 12px;
}

.reg-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.reg-step-badge {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reg-section-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--muted);
}

/* ── Fields ── */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.field-group:last-child { margin-bottom: 0; }

.field-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--muted);
}

.field-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
}

.field-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.field-icon {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
  flex-shrink: 0;
}

.field-input {
  width: 100%;
  background: var(--bg3);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 14px 14px 14px 42px;
  font-size: .9rem;
  font-family: inherit;
  color: var(--txt);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
}

.field-input::placeholder { color: var(--muted); }

.field-input:focus {
  border-color: var(--blue-brd);
  box-shadow: 0 0 0 3px rgba(0,123,255,.1);
}

.field-input--error {
  border-color: rgba(212,68,68,.5) !important;
  box-shadow: 0 0 0 3px rgba(212,68,68,.08) !important;
}

.field-eye {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 6px;
  display: flex;
  align-items: center;
}
.field-eye svg { width: 16px; height: 16px; }

.field-error {
  font-size: .75rem;
  color: #d44;
  display: none;
}

.field-hint {
  font-size: .72rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Password strength */
.password-strength {
  height: 3px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.strength-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition: width .3s, background .3s;
}

/* ── Specialty grid ── */
.specialty-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.spec-btn {
  background: var(--bg4);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 11px 10px;
  font-size: .82rem;
  font-family: inherit;
  font-weight: 600;
  color: var(--txt2);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
  text-align: center;
}

.spec-btn:hover {
  border-color: var(--blue-brd);
  color: var(--txt);
}

.spec-btn.active {
  background: var(--blue-bg);
  border-color: var(--blue);
  color: var(--blue2);
}

/* ── Form error ── */
.form-error {
  background: rgba(212,68,68,.08);
  border: 1px solid rgba(212,68,68,.25);
  color: #d44;
  font-size: .82rem;
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 14px;
  line-height: 1.5;
}
.form-error a { color: #d44; text-decoration: underline; }

/* ── Submit ── */
.btn-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: var(--blue);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  padding: 15px 20px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: background .2s, box-shadow .2s, transform .15s;
  margin-bottom: 16px;
}
.btn-submit:hover:not(:disabled) {
  background: var(--blue2);
  box-shadow: 0 0 28px var(--blue-glow);
  transform: translateY(-1px);
}
.btn-submit:disabled { opacity: .6; cursor: not-allowed; }

.spinner {
  width: 18px;
  height: 18px;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Bottom links ── */
.reg-login-link {
  text-align: center;
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 10px;
}
.reg-login-link a { color: var(--blue2); font-weight: 600; }

.auth-terms {
  font-size: .72rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
  margin-bottom: 0;
}
.auth-terms a { color: var(--txt2); }
.auth-terms a:hover { color: var(--blue2); }

/* ── Success view ── */
.reg-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 20px 0;
}

.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--blue-bg);
  border: 1px solid var(--blue-brd);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue2);
}
.success-icon svg { width: 30px; height: 30px; }

.success-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.success-sub {
  font-size: .9rem;
  color: var(--txt2);
  line-height: 1.7;
}
.success-sub strong { color: var(--txt); }

.success-note {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Spam callout ── */
.spam-callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 193, 7, 0.08);
  border: 1px solid rgba(255, 193, 7, 0.25);
  border-radius: 12px;
  padding: 14px 16px;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}
.spam-callout-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.spam-callout > div > strong {
  display: block;
  font-size: .82rem;
  color: var(--txt);
  margin-bottom: 4px;
}
.spam-callout p {
  font-size: .78rem;
  color: var(--txt2);
  line-height: 1.6;
  margin: 0;
}
.spam-callout p strong {
  display: inline;
  font-size: inherit;
  color: var(--txt);
}

/* ── Resend button ── */
.btn-resend {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  color: var(--txt2);
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .2s, color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn-resend:hover { border-color: var(--blue2); color: var(--blue2); }
.btn-resend:disabled { opacity: .45; cursor: default; }

/* ── Desktop enhancement ── */
@media (min-width: 600px) {
  .reg-header { padding: 32px 40px 0; justify-content: flex-start; }
  .reg-main   { padding: 40px 24px 64px; }
  .reg-title  { font-size: 2rem; }
  .reg-section { padding: 24px 24px; }
  .specialty-grid { grid-template-columns: repeat(3, 1fr); }
}
