:root {
  --auth-primary: #DC3545;
  --auth-primary-dark: #b02a37;
  --auth-secondary: #364E68;
  --auth-surface: #ffffff;
  --auth-muted: #6b7290;
  --auth-border: #e8eaef;
}

* { box-sizing: border-box; }

body.auth-body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: #f4f5f9;
  min-height: 100vh;
}

.auth-shell {
  display: grid;
  min-height: 100vh;
}

@media (min-width: 992px) {
  .auth-shell { grid-template-columns: 1fr 1fr; }
}

.auth-brand-panel {
  background: linear-gradient(145deg, var(--auth-secondary) 0%, #2a3d52 55%, #1e2d3d 100%);
  color: #fff;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.auth-brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.auth-brand-mark {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.auth-brand-logo {
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}

.auth-brand-name { font-weight: 700; font-size: 1.15rem; }
.auth-brand-sub { font-size: .78rem; opacity: .85; }

.auth-brand-copy h2 {
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 .75rem;
}

.auth-brand-copy p {
  opacity: .9;
  font-size: .95rem;
  line-height: 1.6;
  max-width: 380px;
}

.auth-brand-features {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  font-size: .88rem;
  opacity: .95;
}

.auth-brand-features i { margin-right: .5rem; color: var(--auth-primary); }

.auth-form-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.auth-form-wrap {
  width: 100%;
  max-width: 420px;
  background: var(--auth-surface);
  border: 1px solid var(--auth-border);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(28,32,51,.06);
}

.auth-form-wrap h1 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 .35rem;
  color: #1c2033;
}

.auth-form-wrap .auth-lead {
  color: var(--auth-muted);
  font-size: .88rem;
  margin-bottom: 1.5rem;
}

.auth-form-wrap .form-label {
  font-size: .82rem;
  font-weight: 600;
  color: #3d4459;
}

.auth-form-wrap .form-control,
.auth-form-wrap .form-select {
  border-radius: 10px;
  border-color: var(--auth-border);
  padding: .65rem .85rem;
  font-size: .9rem;
}

.auth-form-wrap .form-control:focus,
.auth-form-wrap .form-select:focus {
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 3px rgba(220, 53, 69, .12);
}

.auth-password-group {
  position: relative;
}

.auth-password-group .form-control {
  padding-right: 2.75rem;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: .65rem;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #6b7290;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus {
  color: #3d4459;
}

.btn-auth-primary {
  background: var(--auth-primary);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: .7rem 1rem;
  border-radius: 10px;
  width: 100%;
}

.btn-auth-primary:hover {
  background: var(--auth-primary-dark);
  color: #fff;
}

.auth-links {
  margin-top: 1.25rem;
  font-size: .85rem;
  text-align: center;
}

.auth-links a {
  color: var(--auth-primary);
  text-decoration: none;
  font-weight: 500;
}

.auth-links a:hover { text-decoration: underline; }

.auth-footer-note {
  margin-top: 1.5rem;
  font-size: .8rem;
  color: var(--auth-muted);
  text-align: center;
}

.auth-footer-note a { color: var(--auth-primary); }

.auth-section-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--auth-muted);
  margin: 1rem 0 .5rem;
}

.auth-success-panel {
  text-align: center;
  padding: 1rem 0;
}

.auth-success-panel i {
  font-size: 3rem;
  color: var(--auth-primary);
  margin-bottom: 1rem;
}

/* Hunter onboarding */
.auth-form-wrap--hunter {
  max-width: 640px;
  padding: 1.75rem;
}

.hunter-onboarding-hero {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.hunter-onboarding-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--auth-secondary), #2a3d52);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.hunter-onboarding-eyebrow {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--auth-muted);
  margin: 0;
}

.hunter-onboarding-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 .2rem;
  color: #1c2033;
}

.hunter-onboarding-subtitle {
  font-size: .86rem;
  color: var(--auth-muted);
  line-height: 1.5;
}

.hunter-progress-label,
.hunter-progress-percent {
  font-size: .78rem;
  font-weight: 600;
  color: #3d4459;
}

.hunter-progress-bar {
  height: 8px;
  border-radius: 999px;
  background: #eceef4;
}

.hunter-progress-bar .progress-bar {
  background: linear-gradient(90deg, var(--auth-primary), #e85d6a);
  border-radius: 999px;
}

.hunter-alert {
  border: none;
  border-radius: 12px;
  font-size: .88rem;
}

.hunter-alert-review {
  background: #eef5ff;
  color: #1e4f8c;
}

.hunter-profile-chip {
  background: #f7f8fc;
  border: 1px solid var(--auth-border);
  border-radius: 12px;
  padding: .85rem 1rem;
  font-size: .86rem;
  color: #3d4459;
}

.hunter-steps {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.hunter-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: .85rem;
  padding: 1rem;
  border: 1px solid var(--auth-border);
  border-radius: 14px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}

.hunter-step--current {
  border-color: rgba(220, 53, 69, .35);
  box-shadow: 0 0 0 3px rgba(220, 53, 69, .08);
}

.hunter-step--done {
  background: #fbfdfd;
}

.hunter-step-marker {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f0f2f7;
  color: #5c6478;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
}

.hunter-step--done .hunter-step-marker {
  background: #e8f7ee;
  color: #198754;
}

.hunter-step--current .hunter-step-marker {
  background: rgba(220, 53, 69, .1);
  color: var(--auth-primary);
}

.hunter-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .35rem;
}

.hunter-step-title {
  font-size: .95rem;
  font-weight: 700;
  margin: 0;
  color: #1c2033;
}

.hunter-step-desc {
  font-size: .84rem;
  color: var(--auth-muted);
  margin-bottom: .75rem;
  line-height: 1.55;
}

.hunter-step-desc:last-child,
.hunter-step-body > .small:last-child {
  margin-bottom: 0;
}

.hunter-id-preview {
  display: block;
  max-height: 140px;
  width: auto;
  border-radius: 10px;
  border: 1px solid var(--auth-border);
}

.hunter-verify-form .form-control {
  letter-spacing: .15em;
  font-weight: 600;
}

.hunter-terms-panel {
  background: #fff8f0;
  border: 1px solid #f3dfc7;
  border-radius: 14px;
  padding: 1rem 1.1rem;
}

.hunter-terms-check .form-check-label {
  font-size: .86rem;
  line-height: 1.5;
}

.hunter-terms-check a {
  color: var(--auth-primary);
  font-weight: 600;
  text-decoration: none;
}

.hunter-terms-check a:hover {
  text-decoration: underline;
}

.hunter-terms-list {
  line-height: 1.65;
}

.hunter-onboarding-footer {
  border-top: 1px solid var(--auth-border);
}

/* Tabbed onboarding */
.hunter-onboard-tabs-wrap {
  margin-bottom: 0;
  border: 1px solid var(--auth-border);
  border-radius: 14px 14px 0 0;
  background: #f7f8fc;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.hunter-onboard-tabs {
  flex-wrap: nowrap;
  border-bottom: none;
  padding: 0.35rem 0.35rem 0;
  gap: 0.15rem;
  min-width: min-content;
}

.hunter-onboard-tabs .nav-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  border: none;
  border-radius: 10px 10px 0 0;
  padding: 0.55rem 0.65rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #5c6478;
  background: transparent;
  white-space: nowrap;
  min-width: 4.5rem;
  transition: background 0.15s, color 0.15s;
}

.hunter-onboard-tabs .nav-link:hover:not(.active) {
  background: rgba(255, 255, 255, 0.7);
  color: #1c2033;
}

.hunter-onboard-tabs .nav-link.active {
  background: #fff;
  color: var(--auth-primary);
  box-shadow: inset 0 -3px 0 var(--auth-primary);
}

.hunter-onboard-tab-num {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: #e8ebf2;
  color: #5c6478;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
}

.hunter-onboard-tabs .nav-link.active .hunter-onboard-tab-num {
  background: rgba(220, 53, 69, 0.12);
  color: var(--auth-primary);
}

.hunter-onboard-tab-icon {
  font-size: 1.1rem;
  color: #198754;
}

.hunter-onboard-tab-label {
  line-height: 1.2;
}

.hunter-onboard-tab--done .hunter-onboard-tab-label {
  color: inherit;
}

.hunter-onboard-panels {
  border: 1px solid var(--auth-border);
  border-top: none;
  border-radius: 0 0 14px 14px;
  background: #fff;
}

.hunter-onboard-panel {
  padding: 1.15rem 1.2rem 1.25rem;
}

.hunter-onboard-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.hunter-onboard-panel-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: #1c2033;
}

.hunter-onboard-panel-desc {
  font-size: 0.86rem;
  color: var(--auth-muted);
  margin-bottom: 1rem;
  line-height: 1.55;
}

.hunter-upload-preview {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.hunter-upload-preview-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(25, 135, 84, 0.92);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.hunter-upload-form .form-control[type="file"] {
  font-size: 0.82rem;
}

@media (max-width: 575.98px) {
  .auth-form-wrap--hunter {
    padding: 1.25rem;
    border-radius: 12px;
  }

  .hunter-onboarding-hero {
    flex-direction: column;
    align-items: flex-start;
  }
}
