/* Argent public authentication experience. Loaded only for signed-out pages. */

.signed-out .skip-link {
  z-index: 1000;
}

body.auth-public-page {
  height: 100dvh;
  overflow: hidden;
}

.auth-experience {
  --auth-blue: #0011ff;
  --auth-blue-hover: #000ed1;
  --auth-navy: #070b22;
  --auth-navy-soft: #0b1234;
  --auth-border: #d9dfeb;
  --auth-muted: #65718a;
  width: 100%;
  height: 100dvh;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(520px, 54.25%) minmax(520px, 45.75%);
  background: #fff;
  color: #0b1228;
}

.auth-presentation {
  position: relative;
  isolation: isolate;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
  padding: clamp(34px, 4vw, 64px) clamp(42px, 5vw, 72px);
  display: flex;
  flex-direction: column;
  background: var(--auth-navy);
  color: #fff;
}

.auth-presentation::before,
.auth-presentation::after {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  content: "";
}

.auth-presentation::before {
  width: min(48vw, 720px);
  aspect-ratio: 1;
  top: min(-25vw, -240px);
  right: min(-21vw, -230px);
  border: 1px solid rgba(111, 126, 255, 0.28);
  box-shadow:
    0 0 0 76px rgba(22, 30, 81, 0.36),
    0 0 0 154px rgba(17, 25, 70, 0.34);
}

.auth-presentation::after {
  width: min(42vw, 640px);
  aspect-ratio: 1;
  left: min(-26vw, -300px);
  bottom: min(-27vw, -320px);
  background: #0a1167;
  box-shadow: 0 0 0 110px rgba(0, 17, 255, 0.16);
}

.auth-presentation-topbar,
.auth-presentation-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.auth-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.auth-wordmark img {
  width: 36px;
  height: 36px;
  display: block;
}

.auth-brand-lockup {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.auth-brand-divider {
  width: 1px;
  height: 38px;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.24);
}

.auth-company-logo-surface {
  min-width: 56px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.16);
}

.auth-company-logo {
  width: auto;
  max-width: min(170px, 18vw);
  height: 38px;
  display: block;
  object-fit: contain;
}

.auth-secure-badge {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #eef2ff;
  font-size: 12px;
}

.auth-secure-badge > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #48d597;
  box-shadow: 0 0 0 5px rgba(72, 213, 151, 0.11);
}

.auth-presentation-copy {
  position: relative;
  z-index: 2;
  width: min(680px, 92%);
  margin-top: clamp(86px, 11vh, 150px);
}

.auth-kicker,
.auth-eyebrow {
  margin: 0 0 22px;
  color: #6573ff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.2em;
  line-height: 1.3;
  text-transform: uppercase;
}

.auth-presentation-copy h2 {
  max-width: 650px;
  margin: 0;
  color: #fff;
  font-size: clamp(47px, 4.25vw, 76px);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.auth-presentation-copy > p:last-child {
  max-width: 540px;
  margin: 30px 0 0;
  color: #c4cdfc;
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.65;
}

.auth-dashboard-visual {
  position: relative;
  z-index: 2;
  width: min(650px, 80%);
  height: 278px;
  margin: auto 0 42px auto;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.065);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.auth-dashboard-rail {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 16px;
  padding: 20px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(0, 0, 0, 0.08);
}

.auth-dashboard-rail span {
  width: 17px;
  height: 4px;
  border-radius: 999px;
  background: #535b80;
}

.auth-dashboard-rail .is-brand {
  width: 20px;
  height: 20px;
  margin-bottom: 4px;
  border-radius: 6px;
  background: var(--auth-blue);
  transform: rotate(45deg);
}

.auth-dashboard-rail .is-active {
  width: 30px;
  height: 20px;
  display: grid;
  place-items: center;
  background: rgba(0, 17, 255, 0.24);
}

.auth-dashboard-canvas {
  position: relative;
  padding: 31px 20px 20px;
}

.auth-dashboard-search {
  position: absolute;
  top: 21px;
  left: 21px;
  width: 90px;
  height: 7px;
  border-radius: 999px;
  background: #e4e8fb;
}

.auth-dashboard-account {
  position: absolute;
  top: 17px;
  right: 23px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--auth-blue);
}

.auth-dashboard-metrics {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.auth-dashboard-metrics article,
.auth-dashboard-chart {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.auth-dashboard-metrics article {
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 12px;
}

.auth-dashboard-metrics small,
.auth-dashboard-chart small {
  color: #8e98bb;
  font-size: 7px;
  font-weight: 800;
  text-transform: uppercase;
}

.auth-dashboard-metrics strong {
  color: #fff;
  font-size: 19px;
  line-height: 1;
}

.auth-dashboard-metrics span {
  color: #53d598;
  font-size: 7px;
}

.auth-dashboard-chart {
  height: 105px;
  margin-top: 11px;
  padding: 12px;
}

.auth-dashboard-chart > div {
  height: 70px;
  display: flex;
  align-items: end;
  gap: 9px;
  padding-top: 8px;
}

.auth-dashboard-chart i {
  height: 42%;
  flex: 1;
  border-radius: 2px 2px 0 0;
  background: #303960;
}

.auth-dashboard-chart i:nth-child(2),
.auth-dashboard-chart i:nth-child(5),
.auth-dashboard-chart i:nth-child(7) { height: 68%; }
.auth-dashboard-chart i:nth-child(8) { height: 54%; }
.auth-dashboard-chart i.is-blue { height: 82%; background: var(--auth-blue); }

.auth-presentation-footer {
  color: #6f7aae;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.auth-access-panel {
  min-width: 0;
  height: 100dvh;
  min-height: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: clamp(38px, 5vw, 72px) clamp(46px, 9vw, 118px) 28px;
  background: #fff;
}

.auth-access-content {
  width: min(440px, 100%);
  margin: auto;
}

.auth-mobile-wordmark {
  display: none;
  color: var(--auth-navy);
}

.auth-mobile-wordmark .auth-brand-divider {
  background: #d9dfeb;
}

.auth-mobile-wordmark .auth-company-logo-surface {
  border: 1px solid #e2e6ef;
  box-shadow: none;
}

.auth-heading {
  margin-bottom: 36px;
}

.auth-eyebrow {
  margin-bottom: 16px;
  color: var(--auth-blue);
}

.auth-heading h1 {
  margin: 0;
  color: #071027;
  font-size: clamp(34px, 3vw, 43px);
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.auth-heading > p:last-child {
  margin: 13px 0 0;
  color: var(--auth-muted);
  font-size: 15px;
  line-height: 1.6;
}

.auth-form {
  display: grid;
  gap: 22px;
}

.auth-field {
  display: grid;
  gap: 9px;
}

.auth-field-heading,
.auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.auth-field label,
.auth-field-heading label,
.auth-label-row label {
  display: inline;
  color: #0c142a;
  font-size: 13px;
  font-weight: 780;
}

.auth-field-heading a,
.auth-label-row a {
  font-size: 12px;
  font-weight: 750;
}

.auth-field input:not([type="checkbox"]) {
  min-height: 55px;
  padding: 0 16px;
  border: 1px solid var(--auth-border);
  border-radius: 11px;
  background: #fff;
  color: #0d152c;
  font-size: 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-field input::placeholder {
  color: #8a94aa;
}

.auth-field input:focus,
.auth-password-control:focus-within {
  border-color: var(--auth-blue);
  box-shadow: 0 0 0 4px rgba(0, 17, 255, 0.11);
  outline: 0;
}

.auth-field input[aria-invalid="true"] {
  border-color: #dc3545;
}

.auth-password-control {
  min-height: 55px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid var(--auth-border);
  border-radius: 11px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-password-control input:not([type="checkbox"]) {
  min-width: 0;
  min-height: 53px;
  border: 0;
  box-shadow: none;
}

.auth-password-control input:focus {
  box-shadow: none;
}

.auth-password-toggle {
  min-height: 36px;
  margin-right: 8px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: #68748c;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-password-toggle:hover {
  background: #f3f5fa;
  color: var(--auth-blue);
}

.auth-field-help,
.auth-field-error,
.auth-password-status {
  margin: 0;
  color: var(--auth-muted);
  font-size: 12px;
  line-height: 1.45;
}

.auth-field-error:not(:empty),
.auth-password-status.is-error {
  color: #b4232f;
}

.auth-password-status.is-success {
  color: #087a4b;
}

.auth-options,
.auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: -2px;
}

.auth-remember,
.auth-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #31405d;
  font-size: 13px;
  font-weight: 620;
}

.auth-remember input,
.auth-checkbox input {
  width: 17px;
  min-height: 17px;
  accent-color: var(--auth-blue);
}

.auth-primary-button,
.auth-secondary-button,
.auth-button {
  width: 100%;
  min-height: 55px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.auth-primary-button,
.auth-button-primary {
  border-color: var(--auth-blue);
  background: var(--auth-blue);
  color: #fff;
  box-shadow: 0 12px 25px rgba(0, 17, 255, 0.17);
}

.auth-primary-button:hover,
.auth-button-primary:hover {
  border-color: var(--auth-blue-hover);
  background: var(--auth-blue-hover);
  color: #fff;
}

a.auth-primary-button:visited,
a.auth-button-primary:visited {
  color: #fff;
}

.auth-primary-button:disabled,
.auth-secondary-button:disabled,
.auth-button:disabled {
  cursor: wait;
  opacity: 0.66;
}

.auth-secondary-button,
.auth-button-secondary {
  border-color: var(--auth-border);
  background: #fff;
  color: #15203a;
  box-shadow: none;
}

.auth-secondary-button:hover,
.auth-button-secondary:hover {
  border-color: #aab5c8;
  background: #f9faff;
  color: #071027;
}

.auth-secondary-button:disabled,
.auth-button-secondary:disabled {
  cursor: not-allowed;
  background: #f8f9fc;
  color: #8792a8;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  color: #9aa3b5;
  font-size: 11px;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  background: var(--auth-border);
  content: "";
}

.auth-microsoft-mark {
  width: 17px;
  height: 17px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 2px;
}

.auth-microsoft-mark i:nth-child(1) { background: #f35325; }
.auth-microsoft-mark i:nth-child(2) { background: #81bc06; }
.auth-microsoft-mark i:nth-child(3) { background: #05a6f0; }
.auth-microsoft-mark i:nth-child(4) { background: #ffba08; }

.auth-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  margin: -14px 0 25px;
  padding: 13px 14px;
  border: 1px solid #cbd2ff;
  border-radius: 10px;
  background: #f4f5ff;
  color: #253263;
  font-size: 13px;
  line-height: 1.45;
}

.auth-notice.is-error,
.auth-notice-error {
  border-color: #ffc7cc;
  background: #fff5f6;
  color: #8e1e2b;
}

.auth-notice-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: currentColor;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.auth-support {
  margin: 31px 0 0;
  color: #8a94a8;
  font-size: 12px;
  text-align: center;
}

.auth-support a,
.auth-tertiary-link {
  font-weight: 760;
}

.auth-tertiary-link {
  display: block;
  margin-top: 13px;
  text-align: center;
}

.auth-access-footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 32px;
  color: #9aa3b5;
  font-size: 10px;
}

.auth-state-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 24px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #eef0ff;
  color: var(--auth-blue);
  font-size: 24px;
  font-weight: 850;
}

.auth-state-icon.is-success,
.auth-state-icon-success {
  background: #e8f9f1;
  color: #088752;
}

.auth-state-icon.is-error,
.auth-state-icon-error {
  background: #fff0f1;
  color: #c52e3d;
}

.auth-state-actions,
.auth-action-stack {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.auth-password-feedback {
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 1px solid #e2e6ef;
  border-radius: 10px;
  background: #fafbfe;
}

.auth-password-feedback strong {
  font-size: 12px;
}

.auth-password-meter {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: #e4e8f0;
}

.auth-password-meter span,
.auth-password-meter::after {
  width: var(--password-strength, 0%);
  height: 100%;
  display: block;
  border-radius: inherit;
  background: var(--password-colour, #aab3c4);
  transition: width 0.18s ease, background-color 0.18s ease;
  content: "";
}

.auth-password-requirements {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 5px;
  color: var(--auth-muted);
  font-size: 11px;
  list-style: none;
}

.auth-password-requirements li::before {
  margin-right: 7px;
  color: #8a94a8;
  content: "○";
}

.auth-password-requirements li.is-met {
  color: #087a4b;
}

.auth-password-requirements li.is-met::before {
  color: #087a4b;
  content: "✓";
}

.auth-loading-indicator,
.auth-spinner {
  width: 32px;
  height: 32px;
  margin: 0 auto 22px;
  border: 3px solid #dfe3ff;
  border-top-color: var(--auth-blue);
  border-radius: 50%;
  animation: auth-spin 0.8s linear infinite;
}

.auth-heading-state strong {
  color: #101a34;
}

.auth-notice-neutral {
  display: block;
  margin-top: -12px;
}

.auth-back-link,
.auth-visitor-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--auth-blue);
  font-size: 13px;
  font-weight: 760;
  text-decoration: none;
}

.auth-back-link:hover,
.auth-visitor-link:hover {
  text-decoration: underline;
}

.auth-match-status,
.auth-password-feedback > span:not(.auth-password-meter) {
  color: var(--auth-muted);
  font-size: 12px;
}

.auth-match-status.is-success,
.auth-password-feedback > span.is-success,
.auth-password-requirement.is-met {
  color: #087a4b;
}

.auth-match-status.is-error,
.auth-password-feedback > span.is-error {
  color: #b4232f;
}

.auth-password-requirement {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.auth-password-requirement i {
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #cbd2df;
  border-radius: 50%;
  color: transparent;
  font-size: 10px;
  font-style: normal;
}

.auth-password-requirement.is-met i {
  border-color: #087a4b;
  background: #e8f9f1;
  color: #087a4b;
}

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

@media (max-width: 1100px) {
  .auth-experience {
    grid-template-columns: minmax(430px, 48%) minmax(430px, 52%);
  }

  .auth-presentation {
    padding: 36px 42px;
  }

  .auth-presentation-copy {
    margin-top: 100px;
  }

  .auth-dashboard-visual {
    width: 92%;
    height: 250px;
  }

  .auth-access-panel {
    padding-inline: 58px;
  }
}

@media (max-width: 820px) {
  body.auth-public-page {
    height: auto;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .auth-experience {
    min-height: 100svh;
    height: auto;
    display: block;
  }

  .auth-presentation {
    display: none;
  }

  .auth-access-panel {
    min-height: 100svh;
    height: auto;
    display: grid;
    grid-template-rows: auto 1fr auto;
    padding: 32px clamp(28px, 9vw, 72px) 24px;
  }

  .auth-mobile-wordmark {
    display: inline-flex;
  }

  .auth-access-content {
    margin-block: 70px;
  }
}

@media (max-width: 520px) {
  .auth-access-panel {
    padding: 24px 20px 20px;
  }

  .auth-access-content {
    margin-block: 48px;
  }

  .auth-mobile-wordmark {
    gap: 12px;
  }

  .auth-mobile-wordmark .auth-wordmark {
    gap: 8px;
    font-size: 12px;
  }

  .auth-mobile-wordmark .auth-wordmark img {
    width: 30px;
    height: 30px;
  }

  .auth-mobile-wordmark .auth-brand-divider {
    height: 32px;
  }

  .auth-mobile-wordmark .auth-company-logo-surface {
    height: 40px;
    padding-inline: 7px;
  }

  .auth-mobile-wordmark .auth-company-logo {
    max-width: 110px;
    height: 30px;
  }

  .auth-heading {
    margin-bottom: 30px;
  }

  .auth-heading h1 {
    font-size: 34px;
  }

  .auth-options,
  .auth-access-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-access-footer {
    gap: 5px;
  }
}

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