/* FreshCredit White-Label Theme — aligned with meet.freshcredit.com */

:root {
  --fc-bg: #000000;
  --fc-surface: #0a0a0a;
  --fc-elevated: #141414;
  --fc-border: #262626;
  --fc-border-focus: #ffffff;
  --fc-text: #ffffff;
  --fc-muted: #a1a1aa;
  --fc-accent: #ffffff;
  --fc-accent-fg: #000000;
  --fc-font-sans: 'Geist', 'Geist Fallback', system-ui, -apple-system, sans-serif;
  --fc-font-display: 'Abril Fatface', Georgia, serif;
  --fc-font-mono: 'Geist Mono', ui-monospace, monospace;
}

html.dark-mode,
html.dark-mode body {
  background-color: var(--fc-bg) !important;
  color: var(--fc-text) !important;
  font-family: var(--fc-font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html.dark-mode #layout > div > .header,
html.dark-mode #layout > div > .footer,
html.dark-mode #layout-menu,
html.dark-mode #layout-sidebar,
html.dark-mode #layout-list,
html.dark-mode #layout-content {
  background-color: var(--fc-bg) !important;
  border-color: var(--fc-border) !important;
}

html.dark-mode #layout-sidebar,
html.dark-mode #layout-list {
  background-color: var(--fc-surface) !important;
}

html.dark-mode #layout-menu {
  background-color: #050505 !important;
  border-right: 1px solid var(--fc-border) !important;
}

.fc-sidebar-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0 8px;
}

.fc-sidebar-mark img {
  width: 26px;
  height: 26px;
  border-radius: 4px;
}

.fc-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.fc-nav-brand img {
  width: 22px;
  height: 22px;
  border-radius: 3px;
}

.fc-nav-brand span {
  font-family: var(--fc-font-display);
  font-size: 16px;
  color: var(--fc-text);
  letter-spacing: -0.025em;
}

/* Login screen matching meet.freshcredit.com */
.task-login .fc-login-shell {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  background: var(--fc-bg) !important;
}

.fc-login-card {
  width: 100%;
  max-width: 360px;
  text-align: center;
}

.fc-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}

.fc-brand img {
  width: 24px;
  height: 24px;
  border-radius: 2px;
  display: block;
}

.fc-brand span {
  font-family: var(--fc-font-display);
  font-size: 16px;
  letter-spacing: -0.025em;
  color: var(--fc-text);
}

.fc-brand span sup {
  font-family: var(--fc-font-sans);
  font-size: 7px;
  vertical-align: super;
  margin-left: 1px;
}

.fc-login-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--fc-text);
}

.fc-login-subtitle {
  font-size: 14px;
  color: var(--fc-muted);
  margin: 0 0 32px;
  line-height: 1.5;
}

.task-login #login-form {
  top: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  text-align: left;
}

.task-login #login-form table,
.task-login #login-form tbody {
  display: block;
  width: 100%;
}

.task-login #login-form tr {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.task-login #login-form td.title,
.task-login #login-form td.input {
  display: block;
  width: 100% !important;
  padding: 0 !important;
  border: 0 !important;
}

.task-login #login-form td.title label {
  font-size: 12px;
  font-weight: 500;
  color: var(--fc-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.task-login #login-form input.form-control {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border-radius: 0.375rem;
  border: 1px solid #333333;
  background: #000000;
  color: #ffffff;
  font-size: 15px;
  font-family: var(--fc-font-sans);
}

.task-login #login-form input.form-control:focus {
  border-color: #ffffff;
  box-shadow: none;
  outline: none;
}

.task-login #login-form p.formbuttons {
  margin: 4px 0 0;
}

.task-login #login-form button[type="submit"],
html.dark-mode .btn-primary {
  height: 44px;
  border-radius: 0.375rem !important;
  border: 1px solid #ffffff !important;
  background: #ffffff !important;
  color: #000000 !important;
  font-weight: 600;
  font-size: 14px;
}

.task-login #login-form button[type="submit"] {
  width: 100%;
  margin-top: 4px;
}

.task-login #login-form button[type="submit"]:hover {
  opacity: 0.92;
}

.task-login #login-footer {
  margin-top: 32px;
  text-align: center;
  font-size: 12px;
  color: var(--fc-muted);
}

html.dark-mode .listing tbody tr.selected td,
html.dark-mode .listing li.selected > a,
html.dark-mode .treelist li.selected > div > a {
  background-color: #1f1f23 !important;
  color: #ffffff !important;
}

html.dark-mode #taskmenu a.selected {
  background-color: #18181b !important;
  color: #ffffff !important;
}

html.dark-mode pre,
html.dark-mode code {
  font-family: var(--fc-font-mono);
}
