/* Shared Migo CRM design language for client authentication and every account page. */
:root {
  --crm-surface: #fff;
  --crm-bg: #f6f7fb;
  --crm-ink: #111827;
  --crm-muted: #6b7280;
  --crm-line: #e5e7eb;
  --crm-soft: #f3f4f6;
  --crm-primary: #111827;
}
body:has(.uc-auth), body:has(.uc-wrap) {
  color: var(--crm-ink);
  background-color: var(--crm-bg) !important;
  background-image: none !important;
  animation: none !important;
}
.uc-auth, .uc-wrap {
  color: var(--crm-ink);
  font-family: Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
}
.uc-auth { gap: 22px; align-items: stretch; padding: 38px 0 54px; }
.uc-auth__intro {
  align-self: stretch;
  padding: 34px;
  border: 1px solid #0f172a;
  border-radius: 16px;
  background: #0f172a;
  color: #fff;
}
.uc-auth__intro h1 { margin: 14px 0 12px; color: #fff; font-size: clamp(30px,3.3vw,44px); font-weight: 700; letter-spacing: -.035em; line-height: 1.08; }
.uc-auth__intro p { max-width: 520px; color: #cbd5e1; font-size: 15px; line-height: 1.65; }
.uc-auth__intro .uc-eyebrow { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.07); color: #e5e7eb; }
.uc-auth__intro .uc-security-list { gap: 8px; margin-top: 20px; }
.uc-auth__intro .uc-security-list span { border: 1px solid rgba(255,255,255,.12); border-radius: 8px; background: rgba(255,255,255,.07); color: #dbe3ef; font-size: 11px; font-weight: 600; padding: 7px 9px; }
.uc-card {
  min-width: 0;
  border: 1px solid var(--crm-line);
  border-radius: 12px;
  background: var(--crm-surface);
  box-shadow: 0 2px 8px rgba(15,23,42,.04);
  color: var(--crm-ink);
}
.uc-auth__card { align-self: center; max-width: 480px; padding: 28px; }
.uc-card h1, .uc-card h2, .uc-card h3 { color: var(--crm-ink); letter-spacing: -.02em; }
.uc-auth__card h2 { margin: 0 0 18px; font-size: 22px; font-weight: 700; }
.uc-wrap { padding-top: 32px; padding-bottom: 56px; }
.uc-head { align-items: center; gap: 16px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--crm-line); }
.uc-head h1 { color: var(--crm-ink); font-size: clamp(26px,3vw,36px); font-weight: 700; letter-spacing: -.035em; line-height: 1.12; }
.uc-head p { margin: 7px 0 0; color: var(--crm-muted); font-size: 14px; line-height: 1.55; }
.uc-eyebrow { border-color: var(--crm-line); border-radius: 7px; background: #fff; color: #4b5563; font-size: 10px; font-weight: 650; letter-spacing: .07em; padding: 6px 9px; }
.uc-grid { gap: 14px; }
.uc-mt { margin-top: 14px; }
.uc-kpi { margin: 8px 0; color: var(--crm-ink); font-size: 28px; font-weight: 700; letter-spacing: -.03em; }
.uc-muted, .uc-dl dd { color: var(--crm-muted); }
.uc-dl dt { color: #374151; font-weight: 650; }

.uc-form { gap: 10px; }
.uc-form label, .uc-wrap label { margin-top: 2px; color: #374151; font-size: 12px; font-weight: 600; }
.uc-auth :is(input:not([type=checkbox]):not([type=radio]), select, textarea),
.uc-wrap :is(input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea) {
  min-height: 38px;
  border: 1px solid var(--crm-line);
  border-radius: 8px;
  background: #fff;
  color: var(--crm-ink);
  font: 500 13px/1.45 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  box-shadow: none;
}
.uc-auth textarea, .uc-wrap textarea { min-height: 94px; }
.uc-auth :is(input,select,textarea):focus-visible,
.uc-wrap :is(input,select,textarea):focus-visible { border-color: #9ca3af; outline: 3px solid rgba(17,24,39,.08); }
.uc-auth input[type=checkbox], .uc-wrap input[type=checkbox], .uc-wrap input[type=radio] { accent-color: var(--crm-primary); }
.uc-auth .btn, .uc-wrap .btn {
  min-height: 38px;
  border: 1px solid var(--crm-primary);
  border-radius: 8px;
  background: var(--crm-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  box-shadow: none;
  transition: background .14s ease,border-color .14s ease,transform .14s ease;
}
.uc-auth .btn:hover, .uc-wrap .btn:hover { border-color: #252f3f; background: #252f3f; }
.uc-auth .btn:active, .uc-wrap .btn:active { transform: translateY(1px); }
.uc-auth .btn.btn--ghost, .uc-wrap .btn.btn--ghost,
.uc-auth .btn.secondary, .uc-wrap .btn.secondary {
  border-color: var(--crm-line);
  background: #fff;
  color: #374151;
}
.uc-auth .btn.btn--ghost:hover, .uc-wrap .btn.btn--ghost:hover,
.uc-auth .btn.secondary:hover, .uc-wrap .btn.secondary:hover { border-color: #d1d5db; background: var(--crm-soft); color: var(--crm-ink); }
.uc-auth a:not(.btn), .uc-wrap a:not(.btn) { color: #111827; text-underline-offset: 2px; }
.uc-auth .uc-muted a, .uc-wrap .uc-muted a { font-weight: 600; }
.uc-auth .uc-alert, .uc-wrap .uc-alert { border-radius: 9px; font-size: 13px; }
.uc-security-list { gap: 8px; }
.uc-security-list span, .uc-chip { border-radius: 8px; background: var(--crm-soft); color: #374151; font-size: 11px; font-weight: 600; padding: 7px 9px; }

.uc-tabs { gap: 6px; margin: 16px 0; padding-bottom: 9px; border-bottom: 1px solid var(--crm-line); }
.uc-tabs a, .uc-tabs button { border: 1px solid var(--crm-line); border-radius: 8px; background: #fff; color: #4b5563; font-size: 12px; font-weight: 600; padding: 8px 10px; }
.uc-tabs a.is-active { border-color: var(--crm-primary); background: var(--crm-primary); color: #fff; }
.uc-tabs__logout { margin-left: auto; }
.uc-table-wrap { max-width: 100%; overflow: auto; border: 1px solid var(--crm-line); border-radius: 9px; background: #fff; }
.uc-table { margin-top: 0; background: #fff; }
.uc-table th, .uc-table td { padding: 11px 12px; border-bottom: 1px solid #f0f1f3; color: #374151; font-size: 13px; line-height: 1.45; }
.uc-table th { background: #fafafa; color: var(--crm-muted); font-size: 10px; font-weight: 650; letter-spacing: .055em; }
.uc-table tr:last-child td { border-bottom: 0; }
.uc-table tr:hover td { background: #fafafa; }
.uc-pill { border: 1px solid var(--crm-line); border-radius: 999px; background: var(--crm-soft); color: #374151; font-size: 11px; font-weight: 650; }
.uc-pill--active, .uc-pill--paid, .uc-pill--done { border-color: #d1fae5; background: #ecfdf5; color: #047857; }
.uc-pill--pending, .uc-pill--unpaid, .uc-pill--queued, .uc-pill--draft { border-color: #fef3c7; background: #fffbeb; color: #92400e; }
.uc-pill--failed, .uc-pill--provision-failed, .uc-pill--blocked, .uc-pill--void { border-color: #fee2e2; background: #fef2f2; color: #b91c1c; }
.uc-message, .uc-pre { border-color: var(--crm-line); border-radius: 9px; background: #fafafa; }
.uc-product-card { gap: 12px; }
.uc-product-card__price { border-top: 1px solid #f0f1f3; padding-top: 12px; }
.uc-price b { color: var(--crm-ink); font-size: 20px; }
.uc-code { border-radius: 9px; background: #111827; }
.uc-codearea { border-color: var(--crm-line); border-radius: 8px; }
.uc-wrap :is(a,button,input,select,textarea,summary):focus-visible,
.uc-auth :is(a,button,input,select,textarea):focus-visible { outline-offset: 2px; }
.uc-wrap :is(button,input,select,textarea):disabled { cursor: not-allowed; opacity: .58; }

@media (max-width: 900px) {
  .uc-auth { gap: 14px; padding-top: 24px; }
  .uc-auth__intro { padding: 24px; }
  .uc-auth__card { max-width: none; padding: 24px; }
  .uc-wrap { padding-top: 24px; padding-bottom: 36px; }
  .uc-head { align-items: flex-start; }
}
@media (max-width: 600px) {
  .uc-auth, .uc-wrap { width: calc(100% - 28px); }
  .uc-auth { gap: 12px; padding: 18px 0 32px; }
  .uc-auth__intro { padding: 20px; border-radius: 12px; }
  .uc-auth__card { padding: 20px; border-radius: 12px; }
  .uc-auth__intro h1, .uc-head h1 { font-size: 28px; }
  .uc-head { display: flex; flex-direction: column; }
  .uc-head > .btn, .uc-head > .uc-actions { align-self: stretch; }
  .uc-tabs { overflow-x: auto; flex-wrap: nowrap; }
  .uc-tabs > * { flex: 0 0 auto; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .uc-auth *, .uc-wrap * { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
.uc-auth input:-webkit-autofill,
.uc-auth input:-webkit-autofill:hover,
.uc-auth input:-webkit-autofill:focus,
.uc-wrap input:-webkit-autofill,
.uc-wrap input:-webkit-autofill:hover,
.uc-wrap input:-webkit-autofill:focus {
  -webkit-text-fill-color: #111827;
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  caret-color: #111827;
  transition: background-color 9999s ease-out 0s;
}
