/* ==========================================================================
   Auth pages (auth.css) — login, register, forgot-password
   ========================================================================== */
.auth-shell { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: calc(100vh - 64px); background: #fff; }

/* Branded side panel */
.auth-panel {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 56px 48px;
  color: #fff;
  background: linear-gradient(160deg, var(--tb-navy) 0%, #0c2f5c 55%, var(--tb-primary) 130%);
}
.auth-panel::before, .auth-panel::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(14, 165, 183, 0.45) 0%, rgba(14, 165, 183, 0) 70%);
}
.auth-panel::before { width: 520px; height: 520px; top: -200px; right: -180px; }
.auth-panel::after { width: 420px; height: 420px; bottom: -220px; left: -160px; background: radial-gradient(circle, rgba(0, 102, 204, 0.55) 0%, rgba(0, 102, 204, 0) 70%); }
.auth-panel > * { position: relative; z-index: 1; }
.auth-panel-logo img { height: 30px; width: auto; filter: brightness(0) invert(1); }
.auth-panel h2 { color: #fff; font-size: clamp(1.6rem, 2.4vw, 2.3rem); font-weight: 800; line-height: 1.12; margin: 0 0 14px; }
.auth-panel p.lead-text { color: rgba(255, 255, 255, 0.8); font-size: 1.02rem; line-height: 1.55; margin: 0 0 30px; max-width: 42ch; }
.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.auth-points li { display: flex; gap: 14px; align-items: flex-start; }
.auth-points .pt-icon { display: grid; place-items: center; flex: 0 0 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.18); }
.auth-points .pt-icon svg { width: 20px; height: 20px; }
.auth-points strong { display: block; color: #fff; font-size: 0.98rem; margin-bottom: 2px; }
.auth-points span { color: rgba(255, 255, 255, 0.72); font-size: 0.88rem; line-height: 1.45; }
.auth-panel-foot { color: rgba(255, 255, 255, 0.5); font-size: 0.8rem; margin-top: 40px; }

/* Form column */
.auth-form-col { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-form { width: 100%; max-width: 480px; }
.auth-form-wide { max-width: 560px; }
.auth-form h1 { font-size: 1.85rem; font-weight: 800; margin: 0 0 6px; }
.auth-form .auth-sub { color: var(--tb-muted); margin: 0 0 26px; }
.auth-form .form-floating > .form-control, .auth-form .form-floating > .form-select { height: calc(3.5rem + 2px); border-radius: 12px; }
.auth-form .form-floating > label { padding-left: 1rem; }
.auth-form .btn-lg { height: 52px; border-radius: 12px; font-size: 1rem; }

/* Password visibility toggle */
.pw-field { position: relative; }
.pw-field .form-control { padding-right: 3.25rem; }
.pw-toggle {
  position: absolute; top: 50%; right: 10px; z-index: 5;
  display: grid; place-items: center;
  width: 36px; height: 36px; padding: 0;
  border: 0; border-radius: 10px; background: transparent;
  color: var(--tb-muted); transform: translateY(-50%);
  transition: background-color 0.15s, color 0.15s;
}
.pw-toggle:hover, .pw-toggle:focus-visible { background: var(--tb-primary-soft); color: var(--tb-primary); outline: none; }
.pw-toggle svg { width: 20px; height: 20px; }
.pw-toggle .ic-hide { display: none; }
.pw-toggle[aria-pressed="true"] .ic-show { display: none; }
.pw-toggle[aria-pressed="true"] .ic-hide { display: block; }

/* Account type segmented control */
.type-segment { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.type-segment .btn-check:checked + .type-option { border-color: var(--tb-primary); background: var(--tb-primary-soft); color: var(--tb-primary); box-shadow: 0 0 0 1px var(--tb-primary) inset; }
.type-option {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 16px 12px; cursor: pointer;
  border: 1.5px solid var(--tb-line); border-radius: 14px;
  background: #fff; color: var(--tb-ink);
  font-weight: 600; font-size: 0.95rem; text-align: center;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}
.type-option:hover { border-color: var(--tb-primary); }
.type-option svg { width: 26px; height: 26px; }
.type-option small { font-weight: 500; color: var(--tb-muted); font-size: 0.78rem; }
.btn-check:checked + .type-option small { color: var(--tb-primary); }

.auth-terms { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--tb-surface); border: 1px solid var(--tb-line); }
.auth-terms .form-check-input { flex: 0 0 auto; width: 1.25rem; height: 1.25rem; margin: 2px 0 0; cursor: pointer; }
.auth-terms label { font-size: 0.9rem; cursor: pointer; line-height: 1.45; }
.auth-terms .link-btn { padding: 0; border: 0; background: none; color: var(--tb-primary); font-weight: 600; text-decoration: underline; cursor: pointer; }

.auth-switch { margin-top: 22px; text-align: center; color: var(--tb-muted); font-size: 0.95rem; }
.auth-switch a { font-weight: 600; }
.auth-legal { margin-top: 18px; font-size: 0.75rem; color: var(--tb-muted); text-align: center; line-height: 1.5; }
.auth-form .alert { border-radius: 12px; }
.grecaptcha-badge { visibility: visible !important; opacity: 0.8; }

@media (max-width: 991.98px) {
  .auth-shell { grid-template-columns: 1fr; min-height: 0; }
  .auth-panel { padding: 32px 24px; }
  .auth-panel h2 { font-size: 1.45rem; margin-bottom: 8px; }
  .auth-panel p.lead-text { margin-bottom: 0; font-size: 0.95rem; }
  .auth-panel-logo, .auth-points, .auth-panel-foot { display: none; }
  .auth-form-col { padding: 36px 20px 48px; }
}

/* --------------------------------------------------------------------------
   "Find and claim your business" modal (register.php)
   -------------------------------------------------------------------------- */
.claim-modal .modal-dialog { max-width: 600px; }
.claim-modal .modal-content { border-radius: 18px; overflow: hidden; }
.claim-modal-head { align-items: flex-start; gap: 14px; padding: 22px 24px 18px; border-bottom: 1px solid var(--tb-line); background: #fff; }
.claim-modal-icon { display: grid; place-items: center; flex: 0 0 46px; width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, var(--tb-primary), var(--tb-accent)); color: #fff; box-shadow: 0 8px 18px rgba(0, 102, 204, 0.28); }
.claim-modal-icon svg { width: 24px; height: 24px; }
.claim-modal-titles { flex: 1 1 auto; min-width: 0; }
.claim-modal-titles .modal-title { font-size: 1.25rem; font-weight: 800; line-height: 1.25; margin: 2px 0 4px; }
.claim-modal-titles p { margin: 0; color: var(--tb-muted); font-size: 0.92rem; line-height: 1.5; }
.claim-modal-head .btn-close { margin: 0 0 0 auto; flex: 0 0 auto; }
.claim-modal-body { padding: 20px 24px 8px; background: var(--tb-surface); }
.claim-search { position: relative; }
.claim-search > svg { position: absolute; top: 50%; left: 16px; width: 20px; height: 20px; color: var(--tb-muted); transform: translateY(-50%); pointer-events: none; }
.claim-search .form-control { height: 54px; padding-left: 48px; border-radius: 14px; border: 1.5px solid var(--tb-line); background: #fff; font-size: 1rem; font-weight: 500; }
.claim-search .form-control:focus { border-color: var(--tb-primary); box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.12); }
.claim-search .form-control::placeholder { color: var(--tb-muted); font-weight: 400; }
.claim-results { margin-top: 14px; min-height: 64px; }
.claim-hint { display: flex; align-items: center; gap: 10px; padding: 12px 4px 16px; color: var(--tb-muted); font-size: 0.88rem; line-height: 1.45; }
.claim-hint svg, .claim-hint .spinner-border { flex: 0 0 18px; width: 18px; height: 18px; color: var(--tb-primary); }
.claim-result-list { display: flex; flex-direction: column; gap: 8px; padding-bottom: 12px; }
.claim-result { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--tb-line); color: var(--tb-ink); text-decoration: none; transition: border-color 0.15s, box-shadow 0.18s var(--tb-ease), transform 0.18s var(--tb-ease); }
.claim-result:hover, .claim-result:focus-visible { border-color: var(--tb-primary); box-shadow: 0 8px 20px rgba(0, 102, 204, 0.12); transform: translateY(-1px); color: var(--tb-ink); outline: none; }
.claim-result-icon { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 11px; background: var(--tb-primary-soft); color: var(--tb-primary); }
.claim-result-icon svg { width: 18px; height: 18px; }
.claim-result-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.claim-result-text strong { font-size: 0.97rem; font-weight: 700; line-height: 1.3; }
.claim-result-text small { color: var(--tb-muted); font-size: 0.82rem; line-height: 1.35; }
.claim-result-cta { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; padding: 7px 12px; border-radius: 999px; background: var(--tb-primary); color: #fff; font-size: 0.82rem; font-weight: 700; white-space: nowrap; }
.claim-result-cta svg { width: 14px; height: 14px; }
.claim-empty { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; margin-bottom: 12px; border-radius: 14px; background: #fff; border: 1px dashed var(--tb-line); font-size: 0.9rem; line-height: 1.5; color: var(--tb-muted); }
.claim-empty strong { color: var(--tb-ink); }
.claim-empty.is-error { border-style: solid; border-color: #f5c2c7; background: #fff5f5; }
.claim-empty.is-error strong { color: #b02a37; }
.claim-modal-foot { justify-content: space-between; gap: 12px; padding: 14px 24px; border-top: 1px solid var(--tb-line); background: #fff; }
.claim-foot-note { flex: 1 1 240px; margin: 0; font-size: 0.82rem; color: var(--tb-muted); line-height: 1.45; }
.claim-modal-foot .btn { border-radius: 999px; padding: 0.5rem 1.2rem; white-space: nowrap; }
@media (max-width: 575.98px) {
  .claim-modal-head { padding: 18px 18px 14px; }
  .claim-modal-body { padding: 16px 16px 6px; }
  .claim-modal-foot { padding: 12px 16px; }
  .claim-modal-foot .btn { width: 100%; }
  .claim-result { flex-wrap: wrap; }
  .claim-result-cta { margin-left: 50px; }
}
