/**
 * Auth pages – Login & Register
 * Premium centered card layout, 2-step registration wizard.
 * Uses site CSS variables: --primary (#286efb), --secondary (#6a747b)
 * Brand accent (warm gold) for highlights: --auth-accent (#FF6F00)
 */
.auth-page {
  --auth-accent: #FF6F00; /* Warm gold – secondary/accent for eyebrow & step indicator */
}

/* ───────── Page wrapper ───────── */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2.5rem 1rem;
  position: relative;
  overflow: hidden;
  background: #f8f9fc;
}

/* Subtle branded orbs — uses primary color at very low opacity */
.auth-page::before,
.auth-page::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.auth-page::before {
  width: 420px;
  height: 420px;
  top: -140px;
  right: -100px;
  background: radial-gradient(circle, rgba(40, 110, 251, .06) 0%, transparent 70%);
}

.auth-page::after {
  width: 360px;
  height: 360px;
  bottom: -120px;
  left: -80px;
  background: radial-gradient(circle, rgba(40, 110, 251, .04) 0%, transparent 70%);
}

.auth-page > * {
  position: relative;
  z-index: 1;
}

/* Hide the empty company footer on auth pages */
.auth-page ~ footer,
.auth-page ~ .bg-gray {
  display: none !important;
}

/* ───────── Centered column ───────── */
.auth-col {
  width: 100%;
  max-width: 460px;
}

/* ───────── Logo / header ───────── */
.auth-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.auth-header img {
  width: min(148px, 34%);
  margin-bottom: .15rem;
}

.auth-header p {
  margin: .35rem 0 0;
  color: var(--secondary, #6a747b);
  font-size: .92rem;
}

/* ───────── Card ───────── */
.auth-card {
  background: #fff;
  border-radius: 20px;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, .04),
    0 8px 24px rgba(0, 0, 0, .06);
  border: 1px solid #eaecf0;
  padding: 2rem;
}

@media (min-width: 576px) {
  .auth-card { padding: 2.25rem; }
}

@media (max-width: 575.98px) {
  .auth-card { padding: 1.35rem; border-radius: 18px; }
}

/* ───────── Status messages ───────── */
.auth-card .success,
.auth-card .success_extend,
.auth-card .error,
.auth-card .warning {
  display: none;
}

.auth-card .success:not(:empty),
.auth-card .success_extend:not(:empty),
.auth-card .error:not(:empty),
.auth-card .warning:not(:empty) {
  display: block;
  margin-bottom: 1rem;
  padding: .75rem 1rem;
  border-radius: 12px;
  font-size: .9rem;
  line-height: 1.5;
}

.auth-card .success:not(:empty),
.auth-card .success_extend:not(:empty) {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.auth-card .error:not(:empty) {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.auth-card .warning:not(:empty) {
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #92400e;
}

/* ───────── Form inputs ───────── */
.auth-card label {
  display: block;
  margin-bottom: .4rem;
  color: #344054;
  font-size: .85rem;
  font-weight: 600;
}

.auth-card label .text-danger {
  color: #dc2626;
}

.auth-card .form-control,
.auth-card .nice_select,
.auth-card .input-phone input[type="tel"],
.auth-card .input-phone .form-control {
  min-height: 2.75rem;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  background: #fff;
  color: #101828;
  font-size: .925rem;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
  transition: border-color .15s, box-shadow .15s;
}

.auth-card .form-control {
  padding: .55rem .8rem;
}

.auth-card .form-control::placeholder {
  color: #98a2b3;
}

.auth-card .form-control:focus,
.auth-card .nice_select:focus,
.auth-card .input-phone input[type="tel"]:focus,
.auth-card .input-phone .form-control:focus {
  border-color: var(--primary, #286efb);
  box-shadow: 0 0 0 3px rgba(40, 110, 251, .12), 0 1px 2px rgba(16, 24, 40, .05);
  outline: none;
}

.auth-card .input-group {
  border-radius: 10px;
}

.auth-card .input-group .input-group-text,
.auth-card .input-group-append .btn {
  min-height: 2.75rem;
  border: 1px solid #d0d5dd;
  background: #f9fafb;
  color: #667085;
}

.auth-card .input-group .input-group-text {
  border-right: 0;
  border-radius: 10px 0 0 10px;
  padding: 0 .75rem;
  font-size: .8rem;
  font-weight: 600;
}

.auth-card .input-group .form-control {
  border-left: 0;
  border-radius: 0;
}

.auth-card .input-group-append .btn {
  border-left: 0;
  border-radius: 0 10px 10px 0;
  padding: 0 .8rem;
}

.auth-card .input-group-append .btn:hover,
.auth-card .input-group-append .btn:focus {
  background: rgba(40, 110, 251, .06);
  color: var(--primary, #286efb);
}

.auth-card .nice_select {
  float: none;
  width: 100%;
  line-height: 2.75rem;
  padding-left: .8rem;
  padding-right: 2rem;
}

.auth-card .nice_select span {
  color: #101828;
}

.auth-card .nice_select.open,
.auth-card .nice_select:hover {
  border-color: var(--primary, #286efb);
}

.auth-card .nice_select .list {
  width: 100%;
  margin-top: .3rem;
  border-radius: 10px;
  border: 1px solid #eaecf0;
  box-shadow: 0 12px 28px rgba(16, 24, 40, .12);
}

/* ───────── Primary button ───────── */
.auth-card .btn-primary {
  min-height: 2.85rem;
  border-radius: 10px;
  font-size: .925rem;
  font-weight: 700;
  letter-spacing: -.01em;
  border: none;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
  transition: transform .1s, box-shadow .15s;
}

.auth-card .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(40, 110, 251, .25);
}

.auth-card .btn-primary:active {
  transform: translateY(0);
}

/* ───────── Footer link ───────── */
.auth-footer {
  margin-top: 1.25rem;
  text-align: center;
  font-size: .84rem;
  color: var(--secondary, #6a747b);
}

.auth-footer a {
  font-weight: 700;
  color: var(--primary, #286efb);
}

/* ===============================================================
   WIZARD – Registration steps
   =============================================================== */

/* Step indicator */
.wizard-indicator {
  display: flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: 1.35rem;
}

.wizard-indicator-step {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: #eaecf0;
  transition: background .3s;
}

.wizard-indicator-step.active {
  background: var(--auth-accent, #FF6F00);
}

.wizard-indicator-label {
  white-space: nowrap;
  font-size: .78rem;
  font-weight: 600;
  color: var(--secondary, #6a747b);
  margin-left: .4rem;
}

/* Step containers */
.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
  animation: wizardFadeIn .25s ease-out;
}

@keyframes wizardFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Section card inside wizard */
.wizard-section {
  padding: 1.15rem;
  border: 1px solid #eaecf0;
  border-radius: 14px;
  background: #fff;
  margin-bottom: .75rem;
}

.wizard-section--account {
  background: linear-gradient(180deg, #fff 0%, #f9fafb 100%);
}

.wizard-section-title {
  font-size: .9rem;
  font-weight: 700;
  color: #101828;
  margin: 0 0 .15rem;
  letter-spacing: -.01em;
}

.wizard-section-copy {
  margin: 0 0 1rem;
  color: var(--secondary, #6a747b);
  font-size: .82rem;
  line-height: 1.5;
}

/* Helper / hint text */
.auth-slug-helper,
.auth-password-hint,
.auth-submit-note,
.auth-terms {
  font-size: .8rem;
  line-height: 1.5;
  color: var(--secondary, #6a747b);
}

.auth-slug-status {
  margin-top: .35rem;
  min-height: 1.1rem;
  font-size: .8rem;
  font-weight: 600;
}

/* Slug suggestions */
.auth-slug-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.register-slug-suggestion {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: .2rem .6rem;
  border-radius: 999px;
  border: 1px solid #d0d5dd;
  background: #f9fafb;
  color: #344054;
  cursor: pointer;
  font-size: .76rem;
  font-weight: 600;
  transition: all .15s;
}

.register-slug-suggestion:hover {
  border-color: var(--primary, #286efb);
  background: rgba(40, 110, 251, .06);
  color: var(--primary, #286efb);
}

/* Back link */
.wizard-back {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .84rem;
  font-weight: 600;
  color: var(--secondary, #6a747b);
  cursor: pointer;
  margin-bottom: .85rem;
  transition: color .15s;
  background: none;
  border: none;
  padding: 0;
}

.wizard-back:hover {
  color: #101828;
  text-decoration: none;
}

/* Terms */
.auth-terms {
  margin: 0 0 .8rem;
}

.auth-terms a {
  font-weight: 700;
  color: var(--primary, #286efb);
}

/* Submit note */
.auth-submit-note {
  margin-top: .6rem;
  text-align: center;
}

/* ───────── Intro / hero banner in card ───────── */
.auth-intro {
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 111, 0, .1);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 111, 0, .04) 0%, rgba(248, 250, 252, .6) 100%);
}

.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  padding: .15rem .55rem;
  border-radius: 999px;
  background: rgba(255, 111, 0, .12);
  color: var(--auth-accent, #FF6F00);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.auth-intro-title {
  margin-top: .55rem;
  font-size: clamp(1.25rem, 1.7vw, 1.55rem);
  line-height: 1.2;
  letter-spacing: -.025em;
  color: #101828;
  margin-bottom: .3rem;
  font-weight: 700;
}

.auth-intro-copy {
  color: #475467;
  font-size: .88rem;
  line-height: 1.55;
  margin-bottom: 0;
}

.auth-intro-points {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .75rem;
}

.auth-intro-point {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: .2rem .55rem;
  border-radius: 999px;
  border: 1px solid #eaecf0;
  background: #fff;
  color: #344054;
  font-size: .74rem;
  font-weight: 600;
}

/* ───────── Trust signals (ad landing) ───────── */
.auth-trust-signals {
  display: flex;
  justify-content: center;
  gap: .85rem;
  margin-top: .85rem;
  flex-wrap: wrap;
}

.auth-trust-signals span {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .73rem;
  font-weight: 600;
  color: var(--secondary, #6a747b);
}

.auth-trust-signals i {
  font-size: .68rem;
  color: var(--success, #28a745);
}

/* ===============================================================
   LOGIN-specific
   =============================================================== */

.auth-card .or-divider {
  position: relative;
  text-align: center;
  margin: 1rem 0;
}

.auth-card .or-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: #eaecf0;
}

.auth-card .or-divider span {
  position: relative;
  background: #fff;
  padding: 0 .7rem;
  font-size: .8rem;
  color: #98a2b3;
  font-weight: 600;
  text-transform: lowercase;
}

.auth-card .btn-social {
  min-height: 2.65rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: .86rem;
  border: 1px solid #d0d5dd;
  transition: background .15s, border-color .15s;
}

.auth-card .btn-social:hover {
  background: #f9fafb;
}

/* ===============================================================
   Responsive – mobile: less copy, same premium feel
   Ideas for further reducing overwhelm (toggle via classes if needed):
   - Intro copy visible on mobile (for Meta ads); mobile shows 2 benefit cards only (below)
   - Hide .auth-trust-signals on mobile (Secure / 1,000+ / Takes 2 min)
   - Shorten .wizard-section-copy or hide on mobile
   - Hide .auth-slug-helper until input is focused
   - Two-section layout: “No payment · Ready in 2 min” line 1,
     “Share on WhatsApp · Free USSD code” line 2 (done via 2x2 grid)
   =============================================================== */

@media (max-width: 575.98px) {
  .auth-page { padding: 1.25rem .85rem; }

  .auth-intro { padding: .85rem; border-radius: 12px; }
  .auth-intro-title { font-size: 1.2rem; }

  /* Intro copy stays visible on mobile (powerful for Meta ads) */

  /* 2x2 grid for benefit points so they don’t stack into a long list */
  .auth-intro-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .35rem .5rem;
    margin-top: .6rem;
  }
  /* Mobile: show only 2 cards (No payment required + Ready in 2 minutes); desktop shows all 4 */
  .auth-intro-point:nth-child(n+3) {
    display: none;
  }
  .auth-intro-point {
    width: 100%;
    justify-content: center;
    min-height: 1.5rem;
    padding: .18rem .4rem;
    font-size: .7rem;
  }

  .register-slug-suggestion {
    width: 100%;
    justify-content: center;
  }

  .wizard-section { padding: .9rem; border-radius: 12px; }

  .auth-card .input-group .input-group-text {
    max-width: 42%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Booking link (mobile): hide domain prefix; show only slug input; full URL in small text below */
  .auth-booking-link-group .auth-booking-link-prefix {
    display: none;
  }
  .auth-booking-link-group .form-control {
    border-radius: 10px;
    border-left: 1px solid #d0d5dd;
  }
  .auth-booking-link-full-url {
    font-size: 0.75rem;
    color: var(--secondary, #6a747b);
    word-break: break-all;
    line-height: 1.4;
  }
  .auth-booking-link-full-url .auth-booking-link-slug-preview {
    color: #344054;
    font-weight: 600;
  }

  /* Trust row: hidden on mobile to reduce overwhelm */
  .auth-trust-signals { display: none; }
}

/* Wizard validation errors */
.wizard-field-error {
  border-color: #f04438 !important;
  box-shadow: 0 0 0 3px rgba(240, 68, 56, .1) !important;
}

.wizard-field-error-msg {
  color: #d92d20;
  font-size: .78rem;
  margin-top: .25rem;
}

/* ===============================================================
   VERIFY – Phone / Email verification screen
   =============================================================== */

.verify-icon-wrap {
  text-align: center;
  margin-bottom: 1rem;
}

.verify-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(40, 110, 251, .08);
  color: var(--primary, #286efb);
  font-size: 1.35rem;
}

.verify-title {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: #101828;
  margin: 0 0 .3rem;
  letter-spacing: -.02em;
}

.verify-subtitle {
  text-align: center;
  font-size: .88rem;
  color: var(--secondary, #6a747b);
  margin: 0 0 .75rem;
  line-height: 1.5;
}

.verify-destination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .65rem 1rem;
  border-radius: 10px;
  background: #f9fafb;
  border: 1px solid #eaecf0;
  margin-bottom: 1.25rem;
}

.verify-destination i {
  color: var(--primary, #286efb);
  font-size: .85rem;
}

.verify-destination span {
  font-weight: 700;
  font-size: .95rem;
  color: #101828;
  letter-spacing: .02em;
}

/* Code input */
.verify-code-wrap {
  margin-bottom: 1rem;
}

.verify-code-label {
  display: block;
  text-align: center;
  font-size: .82rem;
  font-weight: 600;
  color: #344054;
  margin-bottom: .45rem;
}

.verify-code-input {
  text-align: center !important;
  letter-spacing: .55em !important;
  font-size: 1.65rem !important;
  font-weight: 700 !important;
  padding: .6rem 1rem !important;
  min-height: 3.2rem !important;
  border-radius: 10px !important;
  border: 1.5px solid #d0d5dd !important;
  color: #101828 !important;
  transition: border-color .15s, box-shadow .15s !important;
}

.verify-code-input:focus {
  border-color: var(--primary, #286efb) !important;
  box-shadow: 0 0 0 3px rgba(40, 110, 251, .12) !important;
}

.verify-code-input::placeholder {
  color: #d0d5dd !important;
  letter-spacing: .55em;
  font-weight: 400;
}

/* Verify button uses .btn-primary already styled in auth-card */

/* Help / resend area */
.verify-help {
  text-align: center;
  margin-top: 1.15rem;
}

.verify-help p {
  font-size: .84rem;
  color: var(--secondary, #6a747b);
  margin: 0 0 .6rem;
}

.verify-help a {
  font-weight: 700;
  color: var(--primary, #286efb);
}

.verify-back-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--secondary, #6a747b) !important;
  transition: color .15s;
}

.verify-back-link:hover {
  color: #101828 !important;
  text-decoration: none;
}

/* Password-reset "what to do" steps */
.verify-steps {
  padding: 1rem 1.1rem;
  border: 1px solid #eaecf0;
  border-radius: 12px;
  background: #f9fafb;
  margin-bottom: 1.15rem;
}

.verify-steps-title {
  font-size: .88rem;
  font-weight: 700;
  color: #101828;
  margin: 0 0 .6rem;
}

.verify-steps-list {
  padding-left: 1.15rem;
  margin: 0;
}

.verify-steps-list li {
  font-size: .84rem;
  color: var(--secondary, #6a747b);
  line-height: 1.55;
  margin-bottom: .4rem;
}

.verify-steps-list li:last-child {
  margin-bottom: 0;
}

@media (max-width: 575.98px) {
  .verify-icon {
    width: 48px;
    height: 48px;
    font-size: 1.15rem;
  }
  .verify-title { font-size: 1.05rem; }
  .verify-code-input {
    font-size: 1.4rem !important;
    letter-spacing: .45em !important;
  }
}
