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

.auth-page {
  color-scheme: light;
  font-family: "Inter", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --auth-ink: #191e26;
  --auth-muted: #535d68;
  --auth-teal: #176964;
  --auth-teal-dark: #114c49;
  --auth-line: #dde2e8;
  --auth-soft: #f0f2f5;
  --auth-mint: #e2f0ed;
}

.auth-page,
.auth-page *,
.auth-page *::before,
.auth-page *::after {
  box-sizing: border-box;
}

body.auth-page {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  padding: 24px;
  background: #e7eaee;
  color: var(--auth-ink);
  font-family: "Inter", Arial, sans-serif;
}

.auth-page a {
  color: var(--auth-teal);
}

.auth-window {
  position: relative;
  width: 100%;
  min-height: calc(100vh - 48px);
  overflow: hidden;
  border: 1px solid #cbd3dc;
  border-radius: 22px;
  background: #f7f8fa;
  box-shadow: 0 12px 26px rgb(23 36 49 / 10%);
}

.auth-topbar {
  display: flex;
  height: 65px;
  align-items: center;
  justify-content: space-between;
  padding: 0 23px;
  border-bottom: 1px solid var(--auth-line);
  background: #fff;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--auth-ink) !important;
  text-decoration: none;
}

.auth-monogram {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: var(--auth-teal);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
}

.auth-brand-name {
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
}

.auth-office,
.auth-mobile-office {
  padding: 6px 10px;
  border-radius: 99px;
  background: var(--auth-soft);
  color: var(--auth-muted);
  font-size: 11px;
  line-height: 14px;
}

.auth-mobile-office {
  display: none;
}

.auth-layout {
  display: grid;
  width: min(1158px, calc(100% - 64px));
  min-height: calc(100vh - 114px);
  grid-template-columns: minmax(0, 478px) minmax(0, 530px);
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  margin: 0 auto;
}

.auth-card {
  width: 100%;
  padding: 30px;
  border: 1px solid var(--auth-line);
  border-radius: 20px;
  background: #fff;
}

.auth-eyebrow {
  margin: 0 0 8px;
  color: var(--auth-teal-dark);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.9px;
  line-height: 16px;
  text-transform: uppercase;
}

.auth-state-icon {
  display: grid;
  width: 30px;
  height: 30px;
  margin-bottom: 8px;
  place-items: center;
  border-radius: 9px;
  background: var(--auth-mint);
}

.auth-state-icon.is-warning {
  background: #fffbeb;
}

.auth-card h1 {
  margin: 0;
  color: var(--auth-ink);
  font-size: 31px;
  font-weight: 600;
  letter-spacing: -0.6px;
  line-height: 38px;
}

.auth-subtitle {
  margin: 8px 0 0;
  color: var(--auth-muted);
  font-size: 14px;
  line-height: 21px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

#kc-register-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#kc-register-form > * {
  min-width: 0;
  grid-column: 1 / -1;
}

#kc-register-form > :has(input[name="firstName"]) {
  grid-column: 1;
}

#kc-register-form > :has(input[name="lastName"]) {
  grid-column: 2;
}

.auth-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

.auth-field label {
  color: var(--auth-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
}

.auth-field input,
.auth-field select,
.auth-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid #64748b;
  border-radius: 10px;
  outline: none;
  background: #fff;
  color: var(--auth-ink);
  font: inherit;
  font-size: 14px;
  line-height: 20px;
}

.auth-field input::placeholder,
.auth-field textarea::placeholder {
  color: var(--auth-muted);
  opacity: 1;
}

.auth-field input:focus,
.auth-field select:focus,
.auth-field textarea:focus {
  border-color: var(--auth-teal);
  outline: 3px solid rgb(23 105 100 / 16%);
}

.auth-field-error input,
.auth-field-error select,
.auth-field-error textarea,
.auth-field input[aria-invalid="true"],
.auth-field select[aria-invalid="true"],
.auth-field textarea[aria-invalid="true"] {
  border-color: #b42318;
}

.auth-field .auth-field-error,
.auth-field-error .auth-field-message {
  color: #b42318;
  font-size: 12px;
  line-height: 17px;
}

.auth-field-option {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--auth-muted);
  font-size: 13px;
  line-height: 19px;
}

.auth-field-option input {
  width: 16px;
  min-height: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--auth-teal);
}

.auth-button {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border: 0;
  border-radius: 99px;
  background: var(--auth-teal);
  color: #fff !important;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  text-align: center;
  text-decoration: none;
}

.auth-button:hover {
  background: #125c57;
}

.auth-button-disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.auth-button:focus-visible,
.auth-page a:focus-visible {
  outline: 3px solid rgb(23 105 100 / 35%);
  outline-offset: 3px;
}

.auth-foot {
  display: flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0;
  color: var(--auth-muted);
  font-size: 13px;
  line-height: 18px;
  text-align: center;
}

.auth-foot a {
  font-weight: 600;
  text-decoration: none;
}

.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 16px;
  padding: 11px 12px;
  border: 1px solid #f1c5c2;
  border-radius: 10px;
  background: #fff5f4;
  color: #8f1d15;
  font-size: 13px;
  line-height: 19px;
}

.auth-alert img {
  flex: 0 0 auto;
  margin-top: 1px;
}

.auth-next-step {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 16px 0 12px;
  padding: 11px 12px;
  border-radius: 10px;
  background: #fffbeb;
  color: #92400e;
  font-size: 12px;
  line-height: 17px;
}

.auth-next-step:has(#kc-totp-secret-qr-code) {
  align-items: center;
  border: 1px solid var(--auth-line);
  background: #fff;
  color: var(--auth-muted);
}

.auth-next-step img {
  flex: 0 0 auto;
  margin-top: 1px;
}

.auth-next-step strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
}

.auth-next-step p {
  margin: 2px 0 0;
}

.auth-aside {
  display: flex;
  min-height: 664px;
  flex-direction: column;
  justify-content: center;
  gap: 22px;
  padding: 36px;
  border: 1px solid var(--auth-line);
  border-radius: 20px;
  background: #eef0f3;
}

.auth-aside-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.auth-pill {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  border-radius: 99px;
  background: var(--auth-mint);
  color: var(--auth-teal-dark);
  font-size: 11px;
  font-weight: 500;
  line-height: 16px;
}

.auth-aside h2 {
  max-width: 448px;
  margin: 0;
  color: var(--auth-ink);
  font-size: 33px;
  font-weight: 600;
  letter-spacing: -0.65px;
  line-height: 40px;
}

.auth-aside-intro > p {
  max-width: 440px;
  margin: 0;
  color: var(--auth-muted);
  font-size: 15px;
  line-height: 23px;
}

.auth-preview {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 14px;
  border: 1px solid var(--auth-line);
  border-radius: 14px;
  background: #f7f8fa;
}

.auth-preview-heading {
  display: flex;
  min-height: 29px;
  align-items: center;
  gap: 7px;
  color: var(--auth-ink);
  font-size: 13px;
  line-height: 18px;
}

.auth-preview-heading img {
  flex: 0 0 16px;
}

.auth-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.auth-metrics > div {
  display: flex;
  min-width: 0;
  min-height: 52px;
  flex-direction: column;
  gap: 4px;
  padding: 8px 10px;
  border: 1px solid var(--auth-line);
  border-radius: 12px;
  background: #fff;
}

.auth-metrics span {
  overflow: hidden;
  color: var(--auth-muted);
  font-size: 9px;
  line-height: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-metrics strong {
  color: var(--auth-teal-dark);
  font-size: 19px;
  font-weight: 600;
  line-height: 23px;
}

.auth-preview-processes {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 9px 10px;
  border: 1px solid var(--auth-line);
  border-radius: 12px;
  background: #fff;
}

.auth-preview-processes-heading,
.auth-preview-row {
  display: flex;
  min-height: 29px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.auth-preview-processes-heading {
  padding-bottom: 7px;
  border-bottom: 1px solid var(--auth-line);
  font-size: 11px;
  line-height: 16px;
}

.auth-preview-processes-heading > span,
.auth-preview-row em {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 99px;
  background: var(--auth-soft);
  color: var(--auth-muted);
  font-size: 9px;
  font-style: normal;
  line-height: 14px;
}

.auth-preview-row > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}

.auth-preview-row strong {
  overflow: hidden;
  font-size: 10px;
  font-weight: 500;
  line-height: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-preview-row small {
  color: var(--auth-muted);
  font-size: 9px;
  line-height: 12px;
}

.auth-preview-row em.status-analysis {
  background: var(--auth-mint);
  color: var(--auth-teal-dark);
}

.auth-preview-row em.status-review {
  background: #fffbeb;
  color: #92400e;
}

.auth-progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--auth-line);
  border-radius: 14px;
  background: #fff;
  list-style: none;
}

.auth-progress li {
  display: flex;
  min-height: 57px;
  align-items: center;
  gap: 11px;
  padding: 9px;
  border-radius: 10px;
}

.auth-progress li.is-current {
  background: var(--auth-mint);
}

.auth-progress-number {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--auth-soft);
  color: var(--auth-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 17px;
}

.auth-progress li.is-current .auth-progress-number {
  background: var(--auth-teal);
  color: #fff;
}

.auth-progress li.is-complete .auth-progress-number {
  background: var(--auth-mint);
  color: var(--auth-teal);
}

.auth-progress-number img {
  width: 16px;
  height: 16px;
}

.auth-progress-copy {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 1px;
}

.auth-progress-copy strong {
  color: var(--auth-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
}

.auth-progress li.is-current .auth-progress-copy strong {
  color: var(--auth-teal-dark);
}

.auth-progress-copy small {
  color: var(--auth-muted);
  font-size: 11px;
  line-height: 16px;
}

.auth-current-label {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 99px;
  background: #fff;
  color: var(--auth-teal-dark);
  font-size: 10px;
  line-height: 14px;
}

.auth-qr {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  color: var(--auth-muted);
  font-size: 13px;
  line-height: 19px;
  list-style: none;
}

.auth-qr img {
  display: block;
  width: 184px;
  height: 184px;
  max-width: 100%;
  margin: 12px auto;
  object-fit: contain;
}

.auth-qr code {
  display: block;
  overflow-wrap: anywhere;
  padding: 10px 12px;
  border: 1px solid var(--auth-line);
  border-radius: 10px;
  background: #f7f8fa;
  color: var(--auth-ink);
}

@media (max-width: 1100px) {
  body.auth-page {
    padding: 16px;
  }

  .auth-window {
    min-height: calc(100vh - 32px);
  }

  .auth-layout {
    width: calc(100% - 48px);
    min-height: calc(100vh - 98px);
    grid-template-columns: minmax(0, 478px) minmax(340px, 530px);
    gap: 28px;
  }

  .auth-aside {
    min-height: 600px;
    padding: 28px;
  }

}

@media (max-width: 760px) {
  body.auth-page {
    padding: 0;
    background: #f7f8fa;
  }

  .auth-window {
    min-height: 100vh;
    min-height: 100svh;
    overflow: visible;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .auth-topbar {
    height: 65px;
    padding: 0 20px;
  }

  .auth-office {
    display: none;
  }

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

  .auth-layout {
    display: flex;
    width: 100%;
    min-height: calc(100svh - 65px);
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
  }

  .auth-card {
    width: min(100%, 478px);
    padding: 24px 20px;
    border-radius: 16px;
  }

  .auth-card h1 {
    font-size: 28px;
    line-height: 35px;
  }

  #kc-register-form {
    grid-template-columns: minmax(0, 1fr);
  }

  #kc-register-form > :has(input[name="firstName"]),
  #kc-register-form > :has(input[name="lastName"]) {
    grid-column: 1;
  }

  .auth-aside {
    display: none;
  }
}

@media (max-width: 390px) {
  .auth-layout {
    padding-right: 20px;
    padding-left: 20px;
  }

  .auth-card {
    padding: 22px 18px;
  }

  .auth-card h1 {
    font-size: 26px;
    line-height: 33px;
  }
}
