.auth-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background: var(--ui-subtle, #edf4fa);
  padding: 32px;
  color: var(--ui-ink, #18324a);
}
.auth-page > .auth-shell {
  width: min(1040px, 100%);
  max-width: 1040px;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1fr);
  padding: 0;
  border: 1px solid var(--ui-line, #d5e2ee);
  border-radius: 22px;
  overflow: hidden;
  background: var(--ui-surface, #fff);
  box-shadow: 0 22px 70px #16446912;
}
.auth-brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: 38px;
  background: linear-gradient(145deg, #f4faff, #e7f2fb);
  isolation: isolate;
  overflow: hidden;
}
.auth-brand-panel::after {
  content: '';
  position: absolute;
  width: 380px;
  height: 380px;
  right: -220px;
  bottom: -150px;
  border: 1px solid #c6dff1;
  border-radius: 50%;
  box-shadow:
    0 0 0 55px #d5e9f650,
    0 0 0 110px #dfedf650;
  z-index: -1;
}
.auth-page .auth-shell .gm-brand {
  display: flex;
  gap: 16px;
  margin: 0;
}
.auth-page .auth-shell .gm-logo {
  width: 76px;
  height: 76px;
}
.auth-page .auth-shell .brand-product {
  font-size: 23px;
  color: #124568;
}
.auth-page .auth-shell .brand-caption {
  font-size: 13px;
  color: var(--ui-muted, #51667d);
}
.auth-kicker {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 750;
  color: var(--ui-primary-dark, #075c91);
  margin: 0 0 15px;
}
.auth-brand-message h2 {
  font-size: 30px;
  line-height: 1.3;
  letter-spacing: -0.7px;
  color: #143e5d;
  margin: 0 0 18px;
}
.auth-brand-message > p:last-child {
  font-size: 15px;
  line-height: 1.8;
  color: #425f76;
  max-width: 320px;
  margin: 0;
}
.auth-brand-footnote {
  font-size: 12px;
  color: var(--ui-muted, #51667d);
  margin: 0;
}
.auth-page .auth-shell .auth-card {
  min-width: 0;
  max-width: none;
  border: 0;
  border-radius: 0;
  padding: 42px;
  background: var(--ui-surface, #fff);
  box-shadow: none;
}
.auth-page .auth-shell .auth-card h1 {
  font-size: 29px;
  line-height: 1.25;
  letter-spacing: -0.7px;
  color: var(--ui-ink, #18324a);
  margin: 22px 0 10px;
}
.auth-description {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ui-muted, #51667d);
  margin: 0 0 18px;
}
.auth-environment {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 600;
  background: #edf5fb;
  border: 1px solid #d3e5f2;
  border-radius: 7px;
  color: #385e7b;
  padding: 5px 9px;
  margin: 0;
}
.auth-environment::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ui-primary, #0877b4);
}
.auth-page .auth-shell .auth-card form {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}
.auth-page .auth-shell .auth-card label {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ui-ink, #18324a);
  gap: 8px;
}
.auth-card :is(input, select, textarea) {
  width: 100%;
  box-sizing: border-box;
  font-size: 15px;
  color: var(--ui-ink, #18324a);
  border: 1px solid #aebfd0;
  border-radius: 9px;
  padding: 12px 13px;
  min-height: 46px;
  background: #fff;
}
.auth-card :is(input, textarea)::placeholder {
  font-size: 14px;
  color: #61758a;
}
.auth-card :is(input, select, textarea):focus {
  border-color: var(--ui-primary, #0877b4);
  outline: 3px solid #c2e1f5;
  outline-offset: 2px;
}
.auth-page .auth-shell .auth-card button {
  min-height: 46px;
  font-size: 14px;
  border-radius: 9px;
}
.auth-page .auth-shell .auth-card button.primary {
  background: var(--ui-primary, #0877b4);
  border-color: var(--ui-primary, #0877b4);
  color: #fff;
  margin-top: 3px;
}
.auth-page .auth-shell .auth-card button.primary:hover {
  background: var(--ui-primary-dark, #075c91);
}
.auth-page .auth-shell .auth-card button:disabled {
  background: #e2eaf2;
  color: #526b82;
  border-color: #cbd8e5;
  cursor: progress;
}
.auth-card button:focus-visible,
.auth-card summary:focus-visible {
  outline: 3px solid var(--ui-primary, #0877b4);
  outline-offset: 3px;
}
.auth-page .auth-shell .auth-card details {
  border-top: 1px solid var(--ui-line, #dce5ef);
  padding-top: 18px;
  margin-top: 22px;
}
.auth-card summary {
  font-size: 12px;
  line-height: 1.6;
  cursor: pointer;
  color: var(--ui-muted, #51667d);
  font-weight: 550;
}
.auth-card .auth-note {
  font-size: 12px;
  line-height: 1.7;
  color: var(--ui-muted, #51667d);
  margin: 20px 0 0;
}
.auth-page .auth-shell .auth-card #login-message {
  font-size: 13px;
  color: #963d35;
  background: #fff2ef;
  border: 1px solid #edc9c4;
  border-radius: 9px;
  line-height: 1.65;
  padding: 12px;
  margin: 18px 0 0;
  overflow-wrap: anywhere;
}
.auth-page .auth-shell .auth-card #login-message:empty {
  display: none;
}
.auth-page .auth-shell .auth-card #login-message.is-loading {
  color: var(--ui-primary-dark, #075c91);
  background: #eef6fc;
  border-color: #c5ddef;
}
.auth-company-heading {
  display: none;
}
.auth-card:has(#company-form:not([hidden])) .auth-login-heading {
  display: none;
}
.auth-card:has(#company-form:not([hidden])) .auth-company-heading {
  display: block;
}
.auth-user {
  padding: 12px;
  background: var(--ui-subtle, #f4f8fc);
  border: 1px solid var(--ui-line, #dce5ef);
  border-radius: 8px;
  margin: 0;
  color: var(--ui-ink, #18324a);
  font-size: 14px;
}
.auth-account {
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--ui-muted, #51667d);
}
.auth-account a {
  color: inherit;
}
@media (max-width: 760px) {
  .auth-page {
    padding: 20px;
  }
  .auth-page > .auth-shell {
    max-width: 500px;
    grid-template-columns: 1fr;
    border-radius: 18px;
  }
  .auth-brand-panel {
    padding: 24px;
    gap: 20px;
  }
  .auth-page .auth-shell .gm-logo {
    width: 64px;
    height: 64px;
  }
  .auth-page .auth-shell .brand-product {
    font-size: 22px;
  }
  .auth-brand-message,
  .auth-brand-footnote {
    display: none;
  }
  .auth-page .auth-shell .auth-card {
    padding: 28px;
  }
  .auth-page .auth-shell .auth-card h1 {
    font-size: 27px;
    margin-top: 19px;
  }
}
@media (max-width: 420px) {
  .auth-page {
    padding: 12px;
  }
  .auth-brand-panel {
    padding: 20px;
  }
  .auth-page .auth-shell .auth-card {
    padding: 23px 20px;
  }
  .auth-page .auth-shell .gm-brand {
    gap: 12px;
  }
  .auth-page .auth-shell .gm-logo {
    width: 58px;
    height: 58px;
  }
  .auth-page .auth-shell .brand-product {
    font-size: 21px;
  }
  .auth-page .auth-shell .brand-caption {
    font-size: 12px;
  }
  .auth-account {
    max-width: 150px;
  }
}
