@font-face {
  font-family: "Inter";
  src: url("/static/login/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --pv-navy: #071a32;
  --pv-blue: #56a8e8;
  --pv-ink: #172b43;
  --pv-muted: #667589;
  --pv-line: #d6dee7;
  --pv-slate: #8795a7;
  --pv-focus: #3988cf;
  --pv-bg: #f2f6fa;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--pv-bg);
}

body.login-page {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--pv-ink);
  background: var(--pv-bg);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.login-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 440px);
  align-items: center;
  gap: clamp(54px, 8.3vw, 128px);
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 52px clamp(48px, 5.3vw, 88px);
  overflow: hidden;
}

.login-shell::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  content: "";
  background-image: var(--login-background-image, none);
  background-position: center;
  background-size: cover;
}

.login-shell::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(
    90deg,
    rgba(4, 17, 37, 0.95) 0%,
    rgba(5, 20, 43, 0.88) 44%,
    rgba(5, 20, 43, 0.58) 100%
  );
}

.login-marketing {
  width: min(100%, 650px);
  justify-self: center;
  padding: 8px 0 5px;
  color: #f8fbff;
}

.login-welcome {
  max-width: 650px;
  margin: 0;
  font-size: clamp(40px, 4.25vw, 62px);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.login-accent {
  width: 42px;
  height: 3px;
  margin: 16px 0 13px;
  border-radius: 3px;
  background: #5aa9e8;
}

.login-tagline {
  max-width: 530px;
  margin: 0;
  color: rgba(232, 240, 249, 0.78);
  font-size: 15px;
  line-height: 1.55;
}

.login-benefits {
  display: grid;
  gap: 18px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.login-benefit {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.login-benefit-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(117, 183, 234, 0.43);
  border-radius: 50%;
  color: #75b8ed;
  background: rgba(16, 42, 72, 0.56);
}

.login-benefit-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.login-benefit-title {
  margin: 0 0 4px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.login-benefit-description {
  max-width: 440px;
  margin: 0;
  color: rgba(225, 235, 247, 0.72);
  font-size: 14.5px;
  line-height: 1.5;
}

.login-authorized {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 40px 0 0;
  color: rgba(235, 243, 251, 0.8);
  font-size: 13px;
  line-height: 1.4;
}

.login-authorized svg {
  flex: none;
  width: 17px;
  height: 17px;
  color: #74d2a4;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.login-card {
  width: 100%;
  max-width: 440px;
  justify-self: center;
  padding: 44px;
  border: 1px solid rgba(216, 225, 235, 0.92);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 40, 70, 0.13), 0 2px 8px rgba(15, 40, 70, 0.06);
}

.login-brand {
  display: flex;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  margin: 0 0 15px;
  color: #146cae;
  text-align: center;
}

.login-brand img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.login-brand--light img {
  width: auto;
  height: 72px;
  max-height: 72px;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--pv-navy);
}

.login-wordmark {
  color: #126cae;
  font-size: 25px;
  font-weight: 760;
  letter-spacing: -0.055em;
}

.login-card-title {
  margin: 0 0 23px;
  color: #162b43;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.035em;
  text-align: center;
}

.login-error {
  margin: 0 0 17px;
  padding: 11px 12px;
  border: 1px solid #efc2bc;
  border-radius: 7px;
  color: #8c302b;
  background: #fff5f3;
  font-size: 13px;
  line-height: 1.45;
}

.login-form {
  margin: 0;
}

.login-field-label {
  display: block;
  margin: 0 0 7px;
  color: #33445a;
  font-size: 12px;
  font-weight: 650;
}

.login-input-wrap {
  position: relative;
  margin-bottom: 17px;
}

.login-input-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  color: #8795a5;
  pointer-events: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.login-input {
  display: block;
  width: 100%;
  height: 46px;
  padding: 0 42px 0 37px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  outline: none;
  color: #1b2b40;
  background: #fff;
  font: inherit;
  font-size: 13px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.login-input::placeholder {
  color: #a0acba;
  opacity: 1;
}

.login-input:hover {
  border-color: #aab8c7;
}

.login-input:focus-visible {
  border-color: var(--pv-focus);
  box-shadow: 0 0 0 3px rgba(57, 136, 207, 0.17);
}

.login-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 5px;
  color: #748397;
  background: transparent;
  cursor: pointer;
}

.login-password-toggle:hover {
  color: #244869;
  background: #f1f5f8;
}

.login-password-toggle:focus-visible,
.login-submit:focus-visible,
.login-sso:focus-visible {
  outline: 3px solid rgba(57, 136, 207, 0.38);
  outline-offset: 2px;
}

.login-password-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.login-submit {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 10px 0 0;
  padding: 11px 16px;
  border: 1px solid #8795a7;
  border-radius: 7px;
  color: #fff;
  background: #8795a7;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, opacity 140ms ease;
}

.login-submit:not(:disabled):hover {
  border-color: #6f8094;
  background: #6f8094;
}

.login-submit:disabled {
  cursor: not-allowed;
  opacity: 0.88;
}

.login-spinner {
  display: none;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: login-spin 750ms linear infinite;
}

.login-submit[aria-busy="true"] .login-spinner {
  display: block;
}

@keyframes login-spin {
  to { transform: rotate(360deg); }
}

.login-status {
  min-height: 18px;
  margin: 8px 0 0;
  color: #52677d;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 14px;
  color: #8996a4;
  font-size: 11px;
  line-height: 1;
  text-transform: lowercase;
}

.login-divider::before,
.login-divider::after {
  height: 1px;
  flex: 1;
  content: "";
  background: #e1e6eb;
}

.login-sso {
  display: flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid #c9d5e1;
  border-radius: 7px;
  color: #263b52;
  background: #fff;
  font-size: 13px;
  font-weight: 620;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.login-sso:hover {
  border-color: #a8bbce;
  background: #f8fafc;
}

.login-sso[aria-busy="true"] {
  color: #64768a;
  cursor: progress;
}

.login-google-mark {
  flex: none;
  width: 16px;
  height: 16px;
}

.login-access {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 22px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid #e7ebef;
  color: #788696;
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}

.login-access svg {
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 1px;
  fill: none;
  stroke: #8a9aab;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.login-access span {
  flex: 1;
}

.login-footer {
  margin: 14px 0 0;
  color: #8a97a5;
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}

.login-admin-notice {
  margin: 0;
  padding: 13px 14px;
  border: 1px solid #ead9b1;
  border-radius: 7px;
  color: #6b5425;
  background: #fffaf0;
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}

@media (max-width: 1100px) and (min-width: 901px) {
  .login-shell {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
    gap: 48px;
    padding-right: 42px;
    padding-left: 42px;
  }

  .login-marketing {
    max-width: 520px;
  }

  .login-welcome {
    font-size: clamp(40px, 4.4vw, 52px);
  }

  .login-card {
    padding-right: 34px;
    padding-left: 34px;
  }
}

@media (max-width: 900px) {
  body.login-page {
    background: #f2f6fa;
  }

  .login-shell {
    display: flex;
    min-height: 100vh;
    min-height: 100dvh;
    align-items: center;
    justify-content: center;
    padding: 30px 24px;
    overflow: visible;
  }

  .login-shell::before,
  .login-shell::after,
  .login-marketing {
    display: none;
  }

  .login-card {
    max-width: 408px;
    padding: 30px 24px 25px;
  }
}

@media (max-width: 420px) {
  .login-shell {
    padding-right: 16px;
    padding-left: 16px;
  }

  .login-card {
    padding-right: 21px;
    padding-left: 21px;
  }
}

@media (max-height: 680px) and (min-width: 901px) {
  .login-shell {
    align-items: start;
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .login-card {
    margin: auto 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
