/* GMC branding for the native Traccar 6 login. No map or application styles. */
main:has(form input[name="password"]) svg:has(#logotext) {
  box-sizing: border-box;
  width: min(340px, 100%) !important;
  height: 100px !important;
  border-radius: 14px;
  background: #f4f6f8 url('/gmc-tracking-brand.png?v=6') center / 90% auto no-repeat;
}
main:has(form input[name="password"]) svg:has(#logotext) > * { opacity: 0; }
@media (min-width: 900px) {
  main:has(form input[name="password"]) > [class$="-sidebar"] > svg:has(#logotext) { display: none; }
  main:has(form input[name="password"]) > [class$="-sidebar"] {
    position: relative;
    display: block;
    flex: 0 0 40%;
    width: 40%;
    min-height: 100vh;
    background: #063e30 url('/gmc-login-vertical.png?v=6') center / cover no-repeat !important;
  }
  main:has(form input[name="password"]) > [class$="-sidebar"]::after {
    content: '';
    position: absolute;
    top: 10%;
    left: 7%;
    width: 86%;
    height: clamp(90px, 10vw, 135px);
    border-radius: 18px;
    background: #f4f6f8 url('/gmc-tracking-brand.png?v=6') center / 88% auto no-repeat;
    box-shadow: 0 12px 40px #001e2633;
  }
  main:has(form input[name="password"]) form svg:has(#logotext) { display: none; }
}
