:root {
  --primary-h: 176deg;
  --primary-s: 68%;
  --primary-l: 23%;
  --primary: #12615b;
  --primary-hsl: 176deg, 68%, 23%;
  --link: #12615b;
  --link-hover: #0e4e49;
  --site-background: #f3efe7;
  --logo-text-color: #14212b;
}

/*
 * Vikunja stores the selected colour mode on the account and applies the
 * `dark` class before this file is loaded. The Extraara surface is intentionally
 * light, therefore the dark-mode design tokens must be normalised as well.
 * Without these overrides, Vikunja renders white text on the cream background.
 */
:root.dark {
  color-scheme: light;
  --scheme-main: #fffdf8;
  --scheme-main-bis: #f8f5ef;
  --scheme-main-ter: #f3efe7;
  --scheme-invert: #14212b;
  --scheme-invert-bis: #0c181f;
  --scheme-invert-ter: #31534b;
  --scheme-invert-rgb: 20, 33, 43;
  --background: #ebe6dd;
  --body-background-color: #f3efe7;
  --body-color: #43505b;
  --site-background: #f3efe7;
  --text: #43505b;
  --text-strong: #14212b;
  --text-light: #65707d;
  --text-muted: #65707d;
  --strong-color: #14212b;
  --content-heading-color: #14212b;
  --title-color: #14212b;
  --subtitle-color: #43505b;
  --label-color: #14212b;
  --menu-item-color: #43505b;
  --menu-item-hover-background-color: #e8e2d8;
  --menu-item-hover-color: #14212b;
  --menu-label-color: #65707d;
  --input-background-color: #fffdf8;
  --input-color: #14212b;
  --input-placeholder-color: #7a838d;
  --input-border-color: #bfc5c5;
  --input-hover-color: #14212b;
  --input-focus-color: #14212b;
  --input-icon-color: #65707d;
  --input-icon-active-color: #14212b;
  --input-disabled-background-color: #eee9e0;
  --input-disabled-border-color: #d7d1c8;
  --input-disabled-color: #65707d;
  --input-disabled-placeholder-color: #7a838d;
  --border: #c8c2b8;
  --border-hover: #8b938f;
  --card-border-color: rgba(20, 33, 43, .09);
  --shadow-xs: 0 1px 2px rgba(20, 33, 43, .05);
  --shadow-sm: 0 8px 24px rgba(20, 33, 43, .07);
  --shadow-md: 0 14px 34px rgba(20, 33, 43, .10);
  --shadow-lg: 0 22px 52px rgba(20, 33, 43, .13);
  --logo-text-color: #14212b;
}

:root.dark .username-dropdown-trigger {
  color: #14212b !important;
}

:root.dark .menu-list a:not(.router-link-exact-active),
:root.dark .menu-list button {
  color: #43505b;
}

:root.dark .menu-list a:hover,
:root.dark .menu-list button:hover {
  color: #14212b;
}

/* Project cards may use dark or user-defined backgrounds. Keep their labels legible. */
.project-card .project-title {
  color: #fffdf8 !important;
  text-shadow: 0 1px 5px rgba(12, 24, 31, .55);
}

.project-card .favorite {
  color: #fffdf8 !important;
}

/* Soft, light surfaces for settings, dialogs and secondary panels. */
:root.dark .card {
  border: 1px solid rgba(20, 33, 43, .09) !important;
  border-radius: 14px !important;
  background: #fffdf8 !important;
  color: #43505b !important;
  box-shadow: 0 8px 24px rgba(20, 33, 43, .07) !important;
}

:root.dark .card-header {
  border-bottom: 1px solid rgba(20, 33, 43, .08);
  background: transparent !important;
  box-shadow: none !important;
}

:root.dark .card-header-title {
  padding: 1.2rem 1.5rem;
  color: #14212b !important;
  font-weight: 650;
}

:root.dark .card-content {
  padding: 1.5rem !important;
}

:root.dark .navigation-link.is-active {
  border-radius: 0 10px 10px 0;
  background: #e3ece8 !important;
  color: #12615b !important;
  font-weight: 650;
}

:root.dark .input,
:root.dark .textarea,
:root.dark .select select {
  border-radius: 10px;
}

:root.dark .input:disabled,
:root.dark .input.disabled,
:root.dark .textarea:disabled,
:root.dark .select select:disabled {
  border-color: #d7d1c8 !important;
  background: #eee9e0 !important;
  color: #65707d !important;
  opacity: 1;
}

:root.dark .input-wrapper.input {
  border-color: #c8c2b8 !important;
  border-radius: 10px !important;
  background: #fffdf8 !important;
  color: #14212b !important;
  box-shadow: none !important;
}

:root.dark .input-wrapper.input > input.input {
  border: 0 !important;
  background: transparent !important;
  color: #14212b !important;
  box-shadow: none !important;
}

:root.dark .input-wrapper.input .removal-button {
  color: #c84f32 !important;
}

:root.dark .general-settings .field-group + .field-group {
  border-top-color: rgba(20, 33, 43, .08) !important;
}

/* Replace the large Vikunja empty-state mascot with a restrained brand accent. */
.show-tasks:has(.llama-cool) .llama-cool {
  display: none !important;
}

.show-tasks:has(.llama-cool)::after {
  content: "";
  display: block;
  width: 76px;
  height: 6px;
  margin: 2.5rem auto 0;
  border-radius: 999px;
  background: #c84f32;
  box-shadow: 0 15px 0 #12615b;
}

.no-auth-wrapper {
  background: #f3efe7 !important;
  padding: clamp(1rem, 4vh, 3.5rem) 1.25rem !important;
  justify-content: center;
}

.no-auth-wrapper > .logo {
  width: min(250px, 62vw) !important;
  height: auto !important;
  margin: 0 0 1.5rem !important;
}

.noauth-container {
  width: min(1160px, 100%) !important;
  min-height: min(720px, calc(100vh - 10rem)) !important;
  border-radius: 20px !important;
  border: 1px solid rgba(20, 33, 43, .09);
  box-shadow: 0 24px 70px rgba(20, 33, 43, .16) !important;
}

.noauth-container .image {
  background: #14212b url('/extraara-brand/extraara-login-visual.svg') center / cover no-repeat !important;
  padding: clamp(2rem, 4vw, 4.5rem) !important;
}

.noauth-container .image::before {
  background: linear-gradient(180deg, rgba(20, 33, 43, .02) 25%, rgba(20, 33, 43, .72) 100%) !important;
}

.noauth-container .image-title {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.6rem, 4.4vw, 4.5rem) !important;
  font-weight: 650;
  line-height: 1.03;
  letter-spacing: -.04em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .18);
}

.noauth-container .content {
  background: #fffdf8;
  padding: clamp(2rem, 5vw, 5rem) !important;
  color: #14212b;
}

.noauth-container .content > div:first-child {
  width: 100%;
  max-width: 440px;
  margin: auto;
}

.noauth-container .content h2.title {
  margin-bottom: 2rem;
  color: #14212b;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 650;
  letter-spacing: -.035em;
}

.noauth-container .api-config {
  display: none !important;
}

.noauth-container .content .mbs-4 {
  margin-block-start: 0 !important;
}

.noauth-container .content .button.is-outlined.is-fullwidth {
  min-height: 54px;
  margin-block-start: 0 !important;
  border: 0 !important;
  border-radius: 10px;
  background: #12615b !important;
  color: #fff !important;
  box-shadow: none !important;
  font-size: 1rem;
  font-weight: 650;
  text-transform: none;
}

.noauth-container .content .button.is-outlined.is-fullwidth:hover {
  background: #0e4e49 !important;
}

.noauth-container .button.is-primary,
.noauth-container button[type='submit'] {
  min-height: 50px;
  border-radius: 10px;
  background: #12615b !important;
  box-shadow: none !important;
}

.noauth-container .button.is-primary:hover,
.noauth-container button[type='submit']:hover {
  background: #0e4e49 !important;
}

.noauth-container .legal-links {
  color: #626875;
  text-align: center;
}

@media (max-width: 768px) {
  .no-auth-wrapper {
    padding: 1rem !important;
  }

  .noauth-container {
    min-height: auto !important;
    border-radius: 16px !important;
  }

  .noauth-container .content {
    min-height: 520px;
    padding: 2rem 1.5rem !important;
  }
}
