/* Medvora Health — Lab Partner Onboarding (matches register/login design system) */

body.mh-lpo-body,
body.mh-lab-partner-body,
body:has(.mh-lpo-page) {
  background: #f4f7fb;
}

.mh-lpo-page {
  --mh-navy: #0b1f4d;
  --mh-teal: #13b6ec;
  --mh-teal-dark: #0d8fbf;
  --mh-grad: linear-gradient(135deg, #13b6ec 0%, #2b6fd6 100%);
  --mh-text: #0f172a;
  --mh-muted: #5b6b7c;
  position: relative;
  z-index: 1;
  background:
    radial-gradient(circle at 10% 14%, rgba(19, 182, 236, 0.09), transparent 30%),
    radial-gradient(circle at 92% 8%, rgba(43, 111, 214, 0.08), transparent 26%),
    repeating-linear-gradient(0deg, transparent, transparent 28px, rgba(19, 182, 236, 0.028) 28px, rgba(19, 182, 236, 0.028) 29px),
    repeating-linear-gradient(90deg, transparent, transparent 28px, rgba(19, 182, 236, 0.028) 28px, rgba(19, 182, 236, 0.028) 29px),
    #f4f7fb;
  color: var(--mh-text);
  padding: calc(var(--header-height, 59px) + 0.85rem) 0 2.75rem;
}

.mh-lpo-page .mh-login-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #e7f8fd;
  color: #0d8fbf;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.mh-lpo-page .mh-login-title {
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--mh-navy);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.mh-lpo-page .mh-login-title span {
  color: var(--mh-teal);
}

.mh-lpo-page .mh-login-lead {
  font-size: 1rem;
  color: var(--mh-muted);
  max-width: 28rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.mh-lpo-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 1.35rem;
  display: grid;
  gap: 0.65rem;
}

.mh-lpo-perks li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: #334155;
  font-weight: 500;
  line-height: 1.45;
}

.mh-lpo-perks i {
  color: #13b6ec;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.mh-lpo-steps {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.mh-lpo-steps__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mh-lpo-steps__item > div {
  flex: 1;
  min-width: 0;
}

.mh-lpo-steps__item.is-active {
  border-color: rgba(19, 182, 236, 0.35);
  box-shadow: 0 8px 22px rgba(19, 182, 236, 0.12);
  background: #fff;
}

.mh-lpo-steps__num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.88rem;
  color: #0d8fbf;
  background: #e7f8fd;
}

.mh-lpo-steps__item.is-active .mh-lpo-steps__num {
  background: var(--mh-grad);
  color: #fff;
}

.mh-lpo-steps__item strong {
  display: block;
  font-size: 0.9rem;
  color: var(--mh-navy);
  margin-bottom: 0.1rem;
}

.mh-lpo-steps__item > div > span {
  display: block;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.35;
}

.mh-lpo-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.15rem;
}

.mh-lpo-trust__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e2e8f0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
}

.mh-lpo-trust__chip i {
  color: #13b6ec;
}

.mh-lpo-status-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.mh-lpo-status-link span {
  color: #0d8fbf;
}

.mh-lpo-status-link:hover {
  color: var(--mh-navy);
}

.mh-lpo-status-link:hover span {
  text-decoration: underline;
}

.mh-lpo-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(7, 21, 54, 0.12);
  border: 1px solid rgba(15, 23, 42, 0.06);
  padding: clamp(1.25rem, 2.5vw, 1.85rem);
}

.mh-lpo-card__head {
  margin-bottom: 1.15rem;
}

.mh-lpo-card__title {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 700;
  color: var(--mh-navy);
  margin: 0 0 0.35rem;
}

.mh-lpo-card__subtitle {
  color: var(--mh-muted);
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.mh-lpo-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

.mh-lpo-progress span {
  height: 5px;
  border-radius: 999px;
  background: #e2e8f0;
  transition: background 0.25s ease;
}

.mh-lpo-progress span.is-active {
  background: var(--mh-grad);
}

.mh-lpo-section {
  margin-bottom: 1.15rem;
  padding-bottom: 1.05rem;
  border-bottom: 1px solid #eef2f7;
}

.mh-lpo-section:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.mh-lpo-section__title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--mh-navy);
  margin: 0 0 0.85rem;
}

.mh-lpo-section__title i {
  color: #13b6ec;
}

.mh-lpo-card .form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  margin-bottom: 0.35rem;
}

.mh-lpo-card .form-control,
.mh-lpo-card .form-select {
  min-height: 46px;
  border-radius: 12px;
  border-color: #dbe3ef;
  font-size: 0.92rem;
}

.mh-lpo-card textarea.form-control {
  min-height: auto;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.mh-lpo-card .form-control:focus,
.mh-lpo-card .form-select:focus {
  border-color: #13b6ec;
  box-shadow: 0 0 0 3px rgba(19, 182, 236, 0.18);
}

.mh-lpo-card .form-control::placeholder {
  color: #94a3b8;
}

.mh-lpo-verify-panel {
  background: linear-gradient(180deg, #f8fbff 0%, #f4f8fc 100%);
  border: 1px solid #dbe7f5;
  border-radius: 16px;
  padding: clamp(1rem, 2vw, 1.15rem);
}

.mh-lpo-verify__hint {
  font-size: 0.84rem;
  color: #64748b;
  margin: 0 0 0.85rem;
  line-height: 1.45;
}

.mh-lpo-channel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  background: #eef4fb;
  border-radius: 12px;
  padding: 0.3rem;
  margin-bottom: 0.9rem;
}

.mh-lpo-channel button {
  border: 0;
  background: transparent;
  border-radius: 9px;
  padding: 0.55rem 0.5rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: #64748b;
}

.mh-lpo-channel button.is-active {
  background: var(--mh-grad);
  color: #fff;
  box-shadow: 0 6px 14px rgba(19, 182, 236, 0.28);
}

.mh-lpo-otp-panel {
  display: none;
  margin-top: 0.9rem;
  animation: mhLpoIn 0.3s ease;
}

.mh-lpo-otp-panel.is-open {
  display: block;
}

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

.mh-lpo-verified {
  display: none;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-weight: 700;
  font-size: 0.88rem;
}

.mh-lpo-verified.is-visible {
  display: flex;
}

.mh-lpo-verify-note {
  margin: 0;
  font-size: 0.875rem;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
}

.mh-lpo-page .mh-otp-boxes input {
  border-color: #dbe3ef;
  color: #0b1f4d !important;
  background: #fff !important;
}

.mh-lpo-page .mh-email-otp__chip {
  background: #ecfdf5;
  color: #059669 !important;
}

.mh-lpo-page .mh-email-otp__resend-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.mh-lpo-page .mh-email-otp__resend-label {
  color: #334155 !important;
}

.mh-lpo-page .mh-email-otp__resend-countdown {
  color: #b45309 !important;
}

.mh-lpo-page .mh-email-otp__resend-countdown time {
  color: #92400e !important;
  background: #fef3c7;
}

.mh-lpo-page .mh-email-otp__resend-btn {
  color: #0b1f4d !important;
}

.mh-lpo-verify-panel .mh-lpo-alert.is-visible {
  display: block;
}

.mh-lpo-verify-panel .mh-lpo-alert.is-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.mh-lpo-verify-panel .mh-lpo-alert.is-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.mh-lpo-verify-panel .mh-lpo-alert.is-info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.mh-lpo-verify-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.mh-lpo-verify-row .form-control {
  flex: 1;
  min-width: 0;
}

.mh-lpo-verify-row .btn {
  white-space: nowrap;
  border-radius: 12px;
  font-weight: 700;
  min-height: 46px;
  padding-inline: 1rem;
}

.mh-lpo-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.mh-lpo-actions .btn {
  min-height: 48px;
  border-radius: 12px;
  font-weight: 700;
  padding-inline: 1.25rem;
  align-self: flex-start;
}

.mh-lpo-actions .btn-primary {
  background: var(--mh-grad);
  border: 0;
  box-shadow: 0 10px 20px rgba(19, 182, 236, 0.25);
}

.mh-lpo-actions .btn-primary:hover,
.mh-lpo-actions .btn-primary:focus {
  background: linear-gradient(135deg, #0fb8e8 0%, #2563c7 100%);
  border: 0;
}

.mh-lpo-actions .btn-primary:disabled,
.mh-lpo-actions .btn-primary.is-locked {
  opacity: 0.7;
  box-shadow: none;
}

.mh-lpo-actions__note {
  margin: 0;
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.mh-lpo-actions__note i {
  color: #13b6ec;
  margin-top: 0.1rem;
}

.mh-lpo-alert {
  display: none;
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  font-size: 0.86rem;
  margin-bottom: 0.85rem;
  font-weight: 600;
}

.mh-lpo-alert.is-visible,
.mh-lpo-alert:not(.d-none) {
  display: block;
}

.mh-lpo-alert.is-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.mh-lpo-alert.is-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.mh-lpo-success {
  text-align: center;
  padding: 1.5rem 0.5rem 0.75rem;
  animation: mhLpoIn 0.35s ease;
}

.mh-lpo-success__icon {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  color: #fff;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 12px 28px rgba(34, 197, 94, 0.35);
}

.mh-lpo-success h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--mh-navy);
  margin-bottom: 0.5rem;
}

.mh-lpo-success p {
  color: var(--mh-muted);
  max-width: 26rem;
  margin: 0 auto 1rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

.mh-lpo-success__ref {
  display: inline-block;
  text-align: center;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.15rem;
}

.mh-lpo-success__ref-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.mh-lpo-success__ref strong {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  letter-spacing: 0.05em;
  color: var(--mh-navy);
  word-break: break-word;
}

.mh-lpo-status-result {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #eef2f7;
  animation: mhLpoIn 0.35s ease;
}

.mh-lpo-status-result__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.mh-lpo-status-result__head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--mh-navy);
}

.mh-lpo-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.mh-lpo-status-dl {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1rem;
}

.mh-lpo-status-dl div {
  display: grid;
  grid-template-columns: minmax(100px, 120px) 1fr;
  gap: 0.5rem;
  align-items: start;
  padding: 0.55rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.mh-lpo-status-dl div:last-child {
  border-bottom: 0;
}

.mh-lpo-status-dl dt {
  margin: 0;
  font-weight: 600;
  color: #64748b;
  font-size: 0.85rem;
}

.mh-lpo-status-dl dd {
  margin: 0;
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 500;
  word-break: break-word;
}

.mh-lpo-status-note {
  background: #f8fafc;
  border-left: 4px solid #13b6ec;
  border-radius: 0 12px 12px 0;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.5;
}

.mh-lpo-status-badge.is-success {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.mh-lpo-status-badge.is-danger {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.mh-lpo-status-badge.is-warning {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}

.mh-lpo-status-badge.is-info {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

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

@media (min-width: 576px) {
  .mh-lpo-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}

@media (max-width: 991.98px) {
  .mh-lpo-aside {
    text-align: center;
  }

  .mh-lpo-page .mh-login-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .mh-lpo-perks {
    text-align: left;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
  }

  .mh-lpo-steps {
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
  }

  .mh-lpo-trust {
    justify-content: center;
  }

  .mh-lpo-status-link {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .mh-lpo-page {
    padding-bottom: 2rem;
  }

  .mh-lpo-card {
    border-radius: 16px;
    padding: 1rem;
  }

  .mh-lpo-actions .btn {
    width: 100%;
    align-self: stretch;
  }

  .mh-lpo-verify-row {
    flex-direction: column;
  }

  .mh-lpo-verify-row .btn {
    width: 100%;
  }

  .mh-lpo-status-dl div {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }
}
