@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

/* Fastacenter portal design system
   Mirrors the marketing site's visual language while keeping dense app views practical. */
:root {
  --fc-navy: #0b1833;
  --fc-ink: #14213d;
  --fc-blue: #2856d8;
  --fc-blue-dark: #1e46bd;
  --fc-blue-soft: #edf2ff;
  --fc-muted: #647089;
  --fc-faint: #8994a7;
  --fc-line: #dfe5ef;
  --fc-surface: #ffffff;
  --fc-canvas: #f6f8fc;
  --fc-success: #25865f;
  --fc-warning: #b86b16;
  --fc-danger: #c73f4d;
  --fc-radius: 14px;
  --fc-shadow: 0 8px 24px rgba(11, 24, 51, .055);
  --fc-shadow-raised: 0 20px 45px rgba(11, 24, 51, .1);
}

html { color-scheme: light; }
body.portal-shell,
body.public-shell,
body.checkout-shell {
  background: var(--fc-canvas) !important;
  color: var(--fc-ink);
  font-family: "DM Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.auth-shell {
  min-height: 100vh;
  padding: 32px 20px;
  background:
    radial-gradient(circle at 78% 15%, rgba(40, 86, 216, .13), transparent 34%),
    radial-gradient(circle at 18% 85%, rgba(69, 212, 208, .08), transparent 28%),
    #f6f8fc !important;
  color: var(--fc-ink);
  font-family: "DM Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}
.auth-shell .login-container,
.auth-shell .form-container,
.auth-shell .verify-container,
.auth-shell .dashboard-container {
  border: 1px solid var(--fc-line);
  border-radius: 18px !important;
  box-shadow: 0 28px 70px rgba(11, 24, 51, .13) !important;
}
.auth-shell .login-container,
.auth-shell .form-container,
.auth-shell .verify-container { padding: 2.25rem !important; }
.auth-shell h1 { color: var(--fc-ink) !important; font-weight: 750; letter-spacing: -.04em; }
.auth-shell p { color: var(--fc-muted); }
.auth-shell label { color: #40506a !important; font-size: .875rem; font-weight: 650; }
.auth-shell input:not([type="checkbox"]):not([type="radio"]),
.auth-shell select,
.auth-shell textarea {
  border: 1px solid #cfd7e5 !important;
  border-radius: 9px !important;
  background: #fff;
  color: var(--fc-ink);
}
.auth-shell input:focus,
.auth-shell select:focus,
.auth-shell textarea:focus {
  border-color: var(--fc-blue) !important;
  box-shadow: 0 0 0 3px rgba(40,86,216,.12) !important;
  outline: none;
}
.auth-shell .submit-btn,
.auth-shell button[type="submit"] {
  border-radius: 9px !important;
  background: var(--fc-blue) !important;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(40,86,216,.19);
}
.auth-shell .submit-btn:hover,
.auth-shell button[type="submit"]:hover { background: var(--fc-blue-dark) !important; box-shadow: 0 14px 28px rgba(40,86,216,.24) !important; }
.auth-shell .footer-links a,
.auth-shell a { color: var(--fc-blue); }
.auth-shell .error-message { border-color: #f3c7cc !important; background: #fff0f1 !important; color: var(--fc-danger) !important; }
.auth-shell .success-message { border-color: #bfe5d1 !important; background: #e7f7ef !important; color: var(--fc-success) !important; }

/* Brand */
.auth-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  margin-bottom: 1.35rem;
  text-decoration: none !important;
}
.auth-logo img { display: block; width: 38px; height: 38px; }
.auth-logo .fc-wordmark { font-size: 1.4rem; }
.fc-brand { gap: 10px !important; }
.fc-wordmark {
  color: var(--fc-navy) !important;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.04em;
}
.fc-wordmark > span { color: var(--fc-blue); }

/* Shared shell */
.portal-shell > .flex > aside {
  background: rgba(255, 255, 255, .98) !important;
  border-color: var(--fc-line) !important;
  box-shadow: 8px 0 30px rgba(11, 24, 51, .025);
}
.portal-shell > .flex > .flex-1 > header,
.public-shell > header,
.checkout-shell > header {
  background: rgba(255, 255, 255, .92) !important;
  border-color: var(--fc-line) !important;
  box-shadow: 0 1px 8px rgba(11, 24, 51, .035) !important;
  backdrop-filter: blur(18px);
}
.portal-shell > .flex > .flex-1 > main { background: var(--fc-canvas); }
.portal-shell footer,
.public-shell footer,
.checkout-shell footer { background: #fff !important; border-color: var(--fc-line) !important; }

/* Navigation */
.portal-shell .sidebar-link {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #58657b;
  font-size: .855rem;
  font-weight: 600;
}
.portal-shell .sidebar-link:hover { background: #f3f6fc; border-color: #e7ebf3; color: var(--fc-blue); }
.portal-shell .sidebar-link.active {
  background: var(--fc-blue-soft);
  border-color: #dce5ff;
  color: var(--fc-blue);
  box-shadow: inset 3px 0 0 var(--fc-blue);
  font-weight: 700;
}
.portal-shell .sidebar-sublink { color: #718097; border-radius: 7px; }
.portal-shell .sidebar-sublink:hover { background: #f3f6fc; color: var(--fc-blue); }
.portal-shell .sidebar-sublink.active { color: var(--fc-blue); }

/* Typography */
.portal-shell h1,
.portal-shell h2,
.portal-shell h3,
.public-shell h1,
.public-shell h2,
.public-shell h3,
.checkout-shell h1,
.checkout-shell h2,
.checkout-shell h3 { color: var(--fc-ink); letter-spacing: -.025em; }
.portal-shell h1 { font-weight: 750 !important; letter-spacing: -.04em; }
.portal-shell .text-gray-900,
.public-shell .text-gray-900,
.checkout-shell .text-gray-900 { color: var(--fc-ink) !important; }
.portal-shell .text-gray-800,
.public-shell .text-gray-800,
.checkout-shell .text-gray-800 { color: #263550 !important; }
.portal-shell .text-gray-700,
.public-shell .text-gray-700,
.checkout-shell .text-gray-700 { color: #40506a !important; }
.portal-shell .text-gray-600,
.public-shell .text-gray-600,
.checkout-shell .text-gray-600 { color: var(--fc-muted) !important; }
.portal-shell .text-gray-500,
.public-shell .text-gray-500,
.checkout-shell .text-gray-500 { color: var(--fc-faint) !important; }

/* Surfaces and cards */
.portal-shell .card,
.portal-shell .bg-white,
.public-shell .bg-white,
.checkout-shell .bg-white {
  border-color: var(--fc-line) !important;
}
.portal-shell .card { border-radius: var(--fc-radius); box-shadow: var(--fc-shadow); }
.portal-shell main .bg-white.rounded-xl,
.portal-shell main .bg-white.rounded-lg,
.public-shell main .bg-white.rounded-xl,
.public-shell main .bg-white.rounded-lg,
.checkout-shell main .bg-white.rounded-xl,
.checkout-shell main .bg-white.rounded-lg {
  border-color: var(--fc-line) !important;
  border-radius: var(--fc-radius) !important;
  box-shadow: var(--fc-shadow) !important;
}
.portal-shell .border-gray-100,
.public-shell .border-gray-100,
.checkout-shell .border-gray-100,
.portal-shell .border-gray-200,
.public-shell .border-gray-200,
.checkout-shell .border-gray-200 { border-color: var(--fc-line) !important; }
.portal-shell .divide-gray-100 > :not([hidden]) ~ :not([hidden]),
.public-shell .divide-gray-100 > :not([hidden]) ~ :not([hidden]),
.checkout-shell .divide-gray-100 > :not([hidden]) ~ :not([hidden]) { border-color: #edf0f5 !important; }

/* Primary palette overrides */
.portal-shell .bg-primary-600,
.public-shell .bg-primary-600,
.checkout-shell .bg-primary-600 { background-color: var(--fc-blue) !important; }
.portal-shell .bg-primary-700,
.public-shell .bg-primary-700,
.checkout-shell .bg-primary-700 { background-color: var(--fc-blue-dark) !important; }
.portal-shell .bg-primary-50,
.public-shell .bg-primary-50,
.checkout-shell .bg-primary-50,
.portal-shell .bg-primary-100,
.public-shell .bg-primary-100,
.checkout-shell .bg-primary-100 { background-color: var(--fc-blue-soft) !important; }
.portal-shell .text-primary-600,
.public-shell .text-primary-600,
.checkout-shell .text-primary-600,
.portal-shell .text-primary-700,
.public-shell .text-primary-700,
.checkout-shell .text-primary-700 { color: var(--fc-blue) !important; }
.portal-shell .border-primary-300,
.public-shell .border-primary-300,
.checkout-shell .border-primary-300 { border-color: #9eb3f3 !important; }
.portal-shell .ring-primary-100,
.public-shell .ring-primary-100,
.checkout-shell .ring-primary-100 { --tw-ring-color: #dfe7ff !important; }
.portal-shell .from-primary-600,
.public-shell .from-primary-600,
.checkout-shell .from-primary-600 { --tw-gradient-from: var(--fc-blue) !important; }
.portal-shell .to-primary-700,
.public-shell .to-primary-700,
.checkout-shell .to-primary-700 { --tw-gradient-to: var(--fc-blue-dark) !important; }

/* Buttons and links */
.portal-shell .btn,
.portal-shell button[type="submit"],
.public-shell button[type="submit"],
.checkout-shell button[type="submit"] { border-radius: 9px; font-weight: 700; }
.portal-shell .btn-primary { background: var(--fc-blue); box-shadow: 0 8px 18px rgba(40, 86, 216, .16); }
.portal-shell .btn-primary:hover { background: var(--fc-blue-dark); transform: translateY(-1px); }
.portal-shell a.text-primary-600:hover,
.public-shell a.text-primary-600:hover,
.checkout-shell a.text-primary-600:hover { color: var(--fc-blue-dark) !important; }
.public-shell a.bg-primary-600,
.checkout-shell a.bg-primary-600,
.portal-shell a.bg-primary-600 { border-radius: 9px !important; font-weight: 700 !important; box-shadow: 0 8px 18px rgba(40,86,216,.13); }

/* Forms */
.portal-shell input:not([type="checkbox"]):not([type="radio"]),
.portal-shell select,
.portal-shell textarea,
.public-shell input:not([type="checkbox"]):not([type="radio"]),
.public-shell select,
.public-shell textarea,
.checkout-shell input:not([type="checkbox"]):not([type="radio"]),
.checkout-shell select,
.checkout-shell textarea {
  border-color: #cfd7e5 !important;
  border-radius: 9px !important;
  background-color: #fff;
  color: var(--fc-ink);
  transition: border-color .15s, box-shadow .15s;
}
.portal-shell input:focus,
.portal-shell select:focus,
.portal-shell textarea:focus,
.public-shell input:focus,
.public-shell select:focus,
.public-shell textarea:focus,
.checkout-shell input:focus,
.checkout-shell select:focus,
.checkout-shell textarea:focus {
  border-color: var(--fc-blue) !important;
  box-shadow: 0 0 0 3px rgba(40, 86, 216, .12) !important;
  outline: none !important;
  --tw-ring-color: transparent !important;
}
.portal-shell label,
.public-shell label,
.checkout-shell label { color: #40506a; font-weight: 650; }

/* Tables */
.portal-shell table,
.public-shell table,
.checkout-shell table { border-collapse: separate; border-spacing: 0; }
.portal-shell thead,
.public-shell thead,
.checkout-shell thead { background: #f4f6fa !important; }
.portal-shell th,
.public-shell th,
.checkout-shell th {
  color: #718097 !important;
  font-size: .7rem !important;
  font-weight: 750 !important;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.portal-shell td,
.public-shell td,
.checkout-shell td { border-color: #e8ecf2 !important; color: #35445e; }
.portal-shell tbody tr:hover,
.public-shell tbody tr:hover,
.checkout-shell tbody tr:hover { background: #f7f9fd !important; }

/* Status colors retain meaning, with quieter surfaces. */
.portal-shell .bg-green-100,
.public-shell .bg-green-100,
.checkout-shell .bg-green-100 { background: #e7f7ef !important; }
.portal-shell .text-green-600,
.portal-shell .text-green-700,
.portal-shell .text-green-800,
.public-shell .text-green-600,
.public-shell .text-green-700,
.checkout-shell .text-green-600,
.checkout-shell .text-green-700 { color: var(--fc-success) !important; }
.portal-shell .bg-yellow-100,
.public-shell .bg-yellow-100,
.checkout-shell .bg-yellow-100 { background: #fff5dd !important; }
.portal-shell .text-yellow-600,
.portal-shell .text-yellow-700,
.portal-shell .text-yellow-800,
.public-shell .text-yellow-700,
.checkout-shell .text-yellow-700 { color: var(--fc-warning) !important; }
.portal-shell .bg-red-100,
.public-shell .bg-red-100,
.checkout-shell .bg-red-100 { background: #fff0f1 !important; }
.portal-shell .text-red-600,
.portal-shell .text-red-700,
.portal-shell .text-red-800,
.public-shell .text-red-600,
.public-shell .text-red-700,
.checkout-shell .text-red-600,
.checkout-shell .text-red-700 { color: var(--fc-danger) !important; }

/* Public and checkout chrome */
.public-shell > header,
.checkout-shell > header { position: sticky; top: 0; z-index: 30; }
.public-shell > main { padding-top: 2.75rem; padding-bottom: 4rem; }
.checkout-shell > header + div { background: #fff !important; border-color: var(--fc-line) !important; }
.checkout-shell > main { padding-top: 2.5rem; padding-bottom: 4rem; }

@media (min-width: 1024px) {
  .portal-shell > .flex > .flex-1 > main { padding: 2.25rem 2.5rem !important; }
}

@media (max-width: 640px) {
  .fc-wordmark { font-size: 21px; }
  .portal-shell > .flex > .flex-1 > main { padding: 1.25rem !important; }
  .portal-shell h1 { font-size: 1.55rem !important; }
  .public-shell > main,
  .checkout-shell > main { padding-top: 1.5rem; }
}
