/* independent-drive-20260804: login background only */
body {
  background: #edf3fb;
}

.auth-shell.auth-shell {
  position: relative;
  isolation: isolate;
  background-color: #edf3fb !important;
  background-image:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0) 42%),
    linear-gradient(315deg, rgba(31, 96, 224, 0.07), rgba(31, 96, 224, 0) 44%),
    linear-gradient(90deg, rgba(48, 91, 153, 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(48, 91, 153, 0.055) 1px, transparent 1px) !important;
  background-size: auto, auto, 48px 48px, 48px 48px !important;
}

.auth-shell.auth-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.auth-shell.auth-shell::after {
  content: "";
  position: absolute;
  top: 78px;
  right: 24px;
  left: 24px;
  z-index: 1;
  height: 1px;
  pointer-events: none;
  background: rgba(47, 94, 160, 0.1);
}

/* Replace the original animated circle layer instead of stacking over it. */
body .login-bg.login-bg[data-v-e344877f] {
  display: none !important;
}

/* independent-drive-20260804: remove the login theme switch */
body .auth-shell .auth-shell__theme-btn {
  display: none !important;
  pointer-events: none !important;
}

/* independent-drive-20260804: compact login provider icons */
body .auth-shell .oauth__btn-icon {
  width: 14px !important;
  height: 14px !important;
  object-fit: contain;
}

/* independent-drive-20260804: animated header brand reveal */
body .auth-shell .auth-shell__topbar-logo.system-logo {
  position: relative;
  width: 166px;
  height: 56px;
  padding: 0 12px;
  overflow: hidden;
}

body .auth-shell .auth-shell__topbar-logo.system-logo > .logo {
  width: 142px !important;
  height: 32px !important;
  max-height: 32px !important;
  opacity: 0;
}

body .auth-shell .auth-shell__topbar-logo.system-logo::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 12px;
  width: 142px;
  height: 32px;
  background: url("/static/images/header-brand-logo-20260804.png") center / contain no-repeat;
  mix-blend-mode: multiply;
  clip-path: inset(0 100% 0 0);
  opacity: 0;
  animation: headerBrandReveal 2200ms linear 120ms forwards;
}

body .auth-shell .auth-shell__topbar-logo.system-logo::after {
  content: "";
  position: absolute;
  top: 13px;
  left: 12px;
  width: 2px;
  height: 30px;
  border-radius: 1px;
  background: linear-gradient(180deg, transparent, rgba(40, 136, 255, 0.92), transparent);
  box-shadow: 0 0 8px rgba(44, 146, 255, 0.55);
  opacity: 0;
  pointer-events: none;
  animation: headerBrandTrace 2200ms linear 120ms forwards;
}

@keyframes headerBrandReveal {
  0% {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
  }
  14% {
    opacity: 1;
  }
  100% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

@keyframes headerBrandTrace {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  12% {
    opacity: 0.9;
  }
  88% {
    opacity: 0.72;
  }
  100% {
    transform: translateX(140px);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  body .auth-shell .auth-shell__topbar-logo.system-logo {
    width: 128px;
    height: 32px;
    padding: 0 4px;
  }

  body .auth-shell .auth-shell__topbar-logo.system-logo > .logo {
    width: 120px !important;
    height: 24px !important;
    max-height: 24px !important;
  }

  body .auth-shell .auth-shell__topbar-logo.system-logo::before {
    top: 4px;
    left: 4px;
    width: 120px;
    height: 24px;
  }

  body .auth-shell .auth-shell__topbar-logo.system-logo::after {
    top: 5px;
    left: 4px;
    height: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body .auth-shell .auth-shell__topbar-logo.system-logo::before {
    clip-path: inset(0 0 0 0);
    opacity: 1;
    animation: none;
  }

  body .auth-shell .auth-shell__topbar-logo.system-logo::after {
    display: none;
    animation: none;
  }
}
