/*
 * Dutchmed login-page branding — colors, gear mark, source-dropdown safety hide.
 * Loaded via the ADD_CSS_ANONYMOUS_PAGE hook (login + other pre-auth pages only).
 * Palette confirmed by direct pixel sampling of the real Dutchmed logo (30.08.2026):
 *   navy #1E326E, blue #4664AA, teal #46B4AA.
 */

:root {
  --tblr-primary: #1E326E;
}

body.welcome-anonymous {
  background-color: #F5F6FA;
}

/* Hide GLPI's own wordmark — replaced by the Dutchmed marks below
   (dutchmed-logo-mark in this same slot, dutchmed-gear-mark bottom-left). */
.glpi-logo {
  display: none !important;
}

/* Dutchmed brand mark (the folded teal arrow from the official letterhead —
   traced from the real PDF template's embedded image via potrace, 30.08.2026,
   NOT a generic placeholder), bottom-left corner, on every anonymous
   (pre-login) page. Inserted as a real element by login.js (see comment
   there for why not ::after).
   Sized ~2x the original pass per user feedback (30.08.2026): was
   26vw/180-380px, now 52vw/360-760px, bleed offset doubled to match. */
.dutchmed-gear-mark {
  content: "";
  position: fixed;
  left: -6vw;
  bottom: -6vw;
  width: 52vw;
  height: 52vw;
  min-width: 360px;
  min-height: 360px;
  max-width: 760px;
  max-height: 760px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 445 446"><g transform="translate(0,446) scale(0.1,-0.1)" fill="%2346B4AA"><path d="M207 4376 c-51 -19 -108 -59 -136 -96 -53 -72 -51 -25 -51 -1246 l0 -1134 418 0 c452 0 548 -8 742 -56 58 -14 110 -29 115 -33 6 -4 33 -16 60 -26 100 -37 228 -113 321 -191 335 -281 498 -705 523 -1357 l6 -167 980 0 c1118 0 1038 -6 1125 86 81 86 80 74 80 715 0 604 0 599 -56 681 -28 40 -81 78 -133 96 -24 9 -231 12 -739 12 l-705 1 34 36 c19 20 167 171 329 335 162 165 297 304 300 309 4 5 108 111 232 237 135 137 235 246 249 272 30 58 33 185 5 242 -10 21 -157 175 -349 366 -543 538 -500 504 -630 510 -130 7 -125 11 -577 -449 -217 -221 -471 -480 -564 -575 -93 -96 -173 -174 -177 -174 -4 0 -8 318 -9 707 -1 688 -1 709 -21 749 -26 56 -75 106 -130 135 l-44 24 -580 2 c-472 2 -587 0 -618 -11z"/></g></svg>') no-repeat center / contain;
  opacity: 0.16;
  pointer-events: none;
  z-index: 1;
}

/* Dutchmed wordmark in the slot where GLPI's own logo used to sit (top of
   the login card) — small brand-mark icon + "Dutch"/"med" text, matching
   the top-right wordmark on the official letterhead. Inserted right after
   the (hidden) .glpi-logo span by login.js, so it occupies the same slot
   and stays centered the way the original GLPI logo was. */
.dutchmed-logo-mark {
  display: block;
  width: 200px;
  max-width: 55%;
  height: auto;
  aspect-ratio: 501 / 254;
  margin: 4px auto 14px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 501 254"><g transform="translate(0,254) scale(0.1,-0.1)"><path fill="%231E326E" d="M3680 1680 l0 -591 108 3 107 3 5 280 c5 262 6 283 26 320 46 85 114 125 190 111 48 -9 98 -59 113 -111 7 -25 11 -148 11 -323 l0 -283 108 3 107 3 3 270 c4 378 -9 455 -90 532 -49 47 -101 65 -188 66 -116 1 -207 -51 -255 -144 -9 -17 -19 -28 -22 -26 -3 3 -4 112 -4 241 l2 236 -111 0 -110 0 0 -590z M40 1644 l0 -556 283 4 c274 4 284 5 362 31 170 57 285 186 330 374 24 98 17 281 -13 370 -61 174 -207 291 -404 323 -35 5 -174 10 -310 10 l-248 0 0 -556z m523 376 c134 -36 217 -139 237 -294 25 -200 -52 -373 -195 -438 -42 -19 -72 -23 -192 -26 l-143 -4 0 384 c0 212 2 387 4 389 9 9 248 -1 289 -11z M2248 2053 l-3 -98 -62 -3 -63 -3 0 -69 0 -69 58 -3 57 -3 5 -305 c5 -292 6 -307 27 -340 12 -19 36 -44 54 -54 42 -25 160 -33 239 -16 l60 13 0 63 0 64 -42 -6 c-24 -3 -55 -1 -70 5 -53 20 -57 45 -58 322 l-1 254 80 3 81 3 0 69 0 70 -80 0 -80 0 0 100 0 100 -100 0 -99 0 -3 -97z M3023 1955 c-203 -45 -303 -192 -303 -441 0 -283 141 -433 406 -434 193 0 328 91 372 253 l10 37 -32 0 c-18 0 -67 3 -108 6 l-74 7 -12 -41 c-26 -85 -87 -128 -171 -120 -96 9 -146 78 -165 225 -19 159 18 299 94 351 30 20 44 23 97 20 73 -5 103 -26 129 -95 l17 -43 77 0 c43 0 91 3 107 6 l30 6 -13 44 c-29 98 -112 178 -216 209 -75 22 -175 26 -245 10z M1202 1628 c4 -278 7 -330 23 -375 39 -113 125 -173 251 -173 118 0 201 42 250 127 14 23 30 43 35 43 5 0 9 -36 9 -80 l0 -80 105 0 105 0 0 430 0 430 -105 0 -105 0 0 -227 c0 -248 -8 -322 -41 -390 -58 -121 -221 -133 -281 -21 -22 42 -23 52 -26 341 l-3 297 -110 0 -111 0 4 -322z"/></g><g transform="translate(0,254) scale(0.1,-0.1)"><path fill="%234664AA" d="M3733 2273 c32 -2 81 -2 110 0 29 2 3 3 -58 3 -60 0 -84 -1 -52 -3z M173 2203 c54 -2 139 -2 190 0 51 1 7 3 -98 3 -104 0 -146 -2 -92 -3z M508 2023 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z M1764 1715 c0 -132 2 -185 3 -117 2 68 2 176 0 240 -1 64 -3 9 -3 -123z M2611 1924 c0 -11 3 -14 6 -6 3 7 2 16 -1 19 -3 4 -6 -2 -5 -13z M4350 1916 c0 -2 8 -10 18 -17 15 -13 16 -12 3 4 -13 16 -21 21 -21 13z M4078 1803 c6 -2 18 -2 25 0 6 3 1 5 -13 5 -14 0 -19 -2 -12 -5z M2234 1505 c0 -132 2 -185 3 -117 2 68 2 176 0 240 -1 64 -3 9 -3 -123z M1033 1660 c0 -36 2 -50 4 -32 2 17 2 47 0 65 -2 17 -4 3 -4 -33z M802 1650 c0 -14 2 -19 5 -12 2 6 2 18 0 25 -3 6 -5 1 -5 -13z M2951 1404 c0 -11 3 -14 6 -6 3 7 2 16 -1 19 -3 4 -6 -2 -5 -13z M3413 1373 c9 -2 23 -2 30 0 6 3 -1 5 -18 5 -16 0 -22 -2 -12 -5z M1201 1344 c0 -11 3 -14 6 -6 3 7 2 16 -1 19 -3 4 -6 -2 -5 -13z M1745 1239 c-5 -8 -4 -10 3 -5 9 5 13 -15 14 -71 l2 -78 3 74 c4 72 -6 107 -22 80z M1568 1233 c7 -3 16 -2 19 1 4 3 -2 6 -13 5 -11 0 -14 -3 -6 -6z M4740 1005 c0 -124 -3 -225 -7 -225 -5 0 -18 16 -30 34 -65 100 -200 136 -347 93 -52 -15 -130 -87 -161 -150 -73 -150 -73 -396 0 -555 50 -110 136 -163 263 -163 106 0 171 27 229 96 20 25 41 45 45 45 4 0 8 -29 8 -65 l0 -65 105 0 105 0 0 590 0 590 -105 0 -105 0 0 -225z m-113 -242 c77 -36 121 -163 110 -317 -7 -95 -19 -141 -50 -186 -35 -52 -70 -73 -129 -77 -76 -6 -115 17 -153 93 -28 54 -30 69 -34 180 -6 224 48 323 177 324 24 0 60 -8 79 -17z M2428 1073 c6 -2 18 -2 25 0 6 3 1 5 -13 5 -14 0 -19 -2 -12 -5z M1770 488 l0 -438 104 0 104 0 4 278 c3 264 4 279 26 327 30 65 57 93 103 105 29 8 46 7 73 -4 80 -33 96 -106 96 -448 l0 -258 104 0 104 0 4 278 c3 263 5 280 26 327 30 65 57 93 104 106 58 15 106 -11 138 -76 24 -49 25 -54 28 -343 l4 -292 105 0 104 0 -3 337 c-3 328 -4 339 -26 388 -48 104 -113 144 -231 145 -111 0 -181 -44 -235 -147 -9 -18 -20 -33 -24 -33 -5 0 -14 17 -21 38 -36 98 -104 142 -221 142 -111 0 -179 -42 -233 -145 -20 -39 -26 -24 -29 75 l-3 75 -102 1 -103 0 0 -438z M3507 920 c-208 -33 -329 -218 -313 -476 13 -212 101 -343 265 -390 85 -25 250 -16 322 18 65 30 129 89 158 147 l21 40 -58 6 c-31 3 -76 8 -99 10 -39 4 -44 2 -58 -26 -25 -47 -70 -69 -141 -69 -47 0 -69 5 -95 23 -44 29 -79 101 -86 177 l-6 60 277 0 276 0 0 59 c0 132 -61 287 -138 351 -74 61 -203 89 -325 70z m178 -154 c14 -9 32 -28 41 -42 21 -31 46 -136 35 -147 -4 -4 -81 -6 -172 -5 l-164 3 2 48 c3 50 30 114 58 137 26 21 105 38 142 29 19 -4 45 -14 58 -23z"/></g><g transform="translate(0,254) scale(0.1,-0.1)"><path fill="%2346B4AA" d="M4166 2494 c-14 -13 -16 -47 -16 -218 l0 -203 101 -6 c116 -6 192 -36 234 -92 29 -37 65 -132 65 -169 0 -13 3 -38 6 -55 l7 -31 181 0 c128 0 186 4 194 12 17 17 17 239 0 256 -8 8 -55 12 -143 12 -73 0 -135 3 -138 7 -4 4 42 57 103 118 60 62 110 119 110 127 0 22 -162 178 -185 178 -12 0 -64 -44 -132 -112 l-113 -113 0 130 c0 178 3 175 -145 175 -90 0 -117 -3 -129 -16z"/></g></svg>') no-repeat center / contain;
}

/* Buttons + links + headings in the Dutchmed palette. */
.btn-primary {
  background-color: #1E326E !important;
  border-color: #1E326E !important;
  color: #FFFFFF !important;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: #4664AA !important;
  border-color: #4664AA !important;
  color: #FFFFFF !important;
}
.card-header h2 {
  color: #1E326E;
}
.rich_text_container a,
.form-footer a {
  color: #4664AA;
}
a.copyright {
  color: #6b7280 !important;
}
