@font-face {
  font-family: "Satoshi";
  src: url("../fonts/satoshi-regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("../fonts/satoshi-medium.woff2") format("woff2");
  font-weight: 500 600;
  font-display: swap;
}

@font-face {
  font-family: "Satoshi";
  src: url("../fonts/satoshi-bold.woff2") format("woff2");
  font-weight: 700 900;
  font-display: swap;
}

:root {
  --auth-accent: #245cff;
  --auth-accent-strong: #1746d8;
  --auth-ink: #09162b;
  --auth-muted: #5d6a80;
  --auth-subtle: #7d899d;
  --auth-line: #dce2ec;
  --auth-surface: #ffffff;
  --auth-soft: #f4f7fc;
  --auth-danger: #b4233a;
  --auth-ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}

html[data-theme="light"] { background: var(--auth-surface); }

body.kc-auth-page {
  min-height: 100dvh;
  margin: 0;
  overflow-x: clip;
  background: var(--auth-surface);
  color: var(--auth-ink);
  font-family: "Satoshi", sans-serif;
  font-feature-settings: "ss01", "ss03", "tnum";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.kc-auth-page a { color: inherit; text-decoration: none; }
.kc-auth-page button,
.kc-auth-page input { font: inherit; }

.kc-auth-page h1,
.kc-auth-page h2,
.kc-auth-page p,
.kc-auth-page figure { margin: 0; }

.kc-auth-page .kc-skip-link {
  position: fixed;
  z-index: 100;
  inset: 12px auto auto 12px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  padding: 0;
  border-radius: 8px;
  background: var(--auth-ink);
  color: #fff;
  clip-path: inset(50%);
  white-space: nowrap;
}

.kc-auth-page .kc-skip-link:focus {
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip-path: none;
}

.kc-auth-page .kc-auth {
  width: 100%;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(400px, 44%) minmax(0, 56%);
  background: var(--auth-surface);
}

.kc-auth-page .kc-auth__brand-panel {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: clamp(30px, 4.5vw, 68px);
  background: var(--auth-accent);
  color: #fff;
}

.kc-auth-page .kc-auth__brand {
  position: relative;
  z-index: 2;
  width: clamp(138px, 12vw, 178px);
  display: inline-flex;
}

.kc-auth-page .kc-auth__brand img,
.kc-auth-page .kc-auth__mobile-brand img {
  width: 100%;
  height: auto;
  display: block;
}

.kc-auth-page .kc-auth__brand img {
  filter: brightness(0) invert(1);
  opacity: .96;
}

.kc-auth-page .kc-auth__brand-copy {
  position: relative;
  z-index: 2;
  max-width: 610px;
  margin-block: auto;
  padding-block: 72px;
}

.kc-auth-page .kc-auth__brand-copy h2 {
  max-width: 10.5em;
  color: #fff;
  font-size: clamp(2.8rem, 4vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -.058em;
  line-height: .94;
  text-wrap: balance;
}

.kc-auth-page .kc-auth__brand-copy p {
  max-width: 31rem;
  margin-top: 30px;
  color: rgb(255 255 255 / .8);
  font-size: clamp(.95rem, 1.25vw, 1.1rem);
  line-height: 1.62;
}

.kc-auth-page .kc-auth__brand-note {
  position: relative;
  z-index: 2;
  max-width: 26rem;
  padding-top: 20px;
  border-top: 1px solid rgb(255 255 255 / .28);
  color: rgb(255 255 255 / .74);
  font-size: .74rem;
  line-height: 1.5;
}

.kc-auth-page .kc-auth__watermark {
  position: absolute;
  z-index: 1;
  width: min(72%, 580px);
  height: auto;
  inset: auto -15% -12% auto;
  opacity: .1;
  filter: brightness(0) invert(1);
  transform: rotate(-8deg);
  pointer-events: none;
  user-select: none;
}

.kc-auth-page .kc-auth__workspace {
  min-width: 0;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: var(--auth-surface);
}

.kc-auth-page .kc-auth__topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-inline: clamp(24px, 4vw, 56px);
}

.kc-auth-page .kc-auth__mobile-brand { display: none; }

.kc-auth-page .kc-auth__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.kc-auth-page .kc-auth__nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding-inline: 13px;
  border-radius: 9px;
  color: var(--auth-muted);
  font-size: .74rem;
  font-weight: 600;
  transition: color 160ms ease, background-color 160ms ease, transform 120ms ease;
}

.kc-auth-page .kc-auth__nav a:hover {
  background: var(--auth-soft);
  color: var(--auth-ink);
}

.kc-auth-page .kc-auth__nav a:active { transform: scale(.98); }

.kc-auth-page .kc-auth__main {
  width: 100%;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 34px clamp(28px, 7vw, 96px) 44px;
  background: var(--auth-surface);
}

.kc-auth-page .kc-auth__card {
  width: min(100%, 420px);
  max-width: 420px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  animation: auth-enter 520ms var(--auth-ease) both;
}

.kc-auth-page .kc-auth__intro {
  display: block;
}

.kc-auth-page .kc-auth__eyebrow {
  color: var(--auth-accent-strong);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.kc-auth-page .kc-auth__title {
  margin-top: 8px;
  color: var(--auth-ink);
  font-size: clamp(2.45rem, 4vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -.052em;
  line-height: .98;
  text-wrap: balance;
}

.kc-auth-page .kc-auth__sub {
  max-width: 39ch;
  margin-top: 18px;
  color: var(--auth-muted);
  font-size: .91rem;
  line-height: 1.62;
  text-wrap: pretty;
}

.kc-auth-page .kc-auth__card form { margin-top: 31px; }

.kc-auth-page .kc-field {
  display: grid;
  gap: 8px;
}

.kc-auth-page .kc-field + .kc-field { margin-top: 18px; }

.kc-auth-page .kc-label {
  color: #334158;
  font-size: .76rem;
  font-weight: 600;
}

.kc-auth-page .kc-label__required { color: var(--auth-accent); }

.kc-auth-page .kc-input {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid #cfd7e4;
  border-radius: 10px;
  outline: 0;
  background: #fff;
  color: var(--auth-ink);
  box-shadow: 0 1px 2px rgb(9 22 43 / .025);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.kc-auth-page .kc-input:hover { border-color: #aab6c8; }

.kc-auth-page .kc-input:focus {
  border-color: var(--auth-accent);
  box-shadow: 0 0 0 3px rgb(36 92 255 / .12);
}

.kc-auth-page .kc-input[aria-invalid="true"] {
  border-color: var(--auth-danger);
  box-shadow: 0 0 0 3px rgb(180 35 58 / .1);
}

.kc-auth-page .kc-reveal {
  position: absolute;
  inset: 50% 7px auto auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #768298;
  transform: translateY(-50%);
  cursor: pointer;
  transition: color 150ms ease, background-color 150ms ease;
}

.kc-auth-page .kc-reveal:hover {
  background: var(--auth-soft);
  color: var(--auth-ink);
}

.kc-auth-page .kc-reveal [data-kc-eye-off] { display: none; }
.kc-auth-page .kc-reveal[aria-pressed="true"] [data-kc-eye-on] { display: none; }
.kc-auth-page .kc-reveal[aria-pressed="true"] [data-kc-eye-off] { display: inline-flex; }

.kc-auth-page .kc-btn {
  min-height: 52px;
  border-radius: 10px;
  font-size: .82rem;
  font-weight: 700;
  transition: transform 150ms var(--auth-ease), background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.kc-auth-page .kc-btn--primary {
  border: 1px solid var(--auth-accent);
  background: var(--auth-accent);
  color: #fff;
  box-shadow: 0 12px 28px -18px rgb(36 92 255 / .9);
}

.kc-auth-page .kc-btn--primary:hover:not(:disabled) {
  border-color: var(--auth-accent-strong);
  background: var(--auth-accent-strong);
  transform: translateY(-1px);
  box-shadow: 0 16px 30px -18px rgb(36 92 255 / .92);
}

.kc-auth-page .kc-btn--primary:active:not(:disabled) { transform: scale(.985); }

.kc-auth-page .kc-btn--outline {
  border-color: #cfd7e4;
  background: #fff;
  color: var(--auth-ink);
}

.kc-auth-page .kc-auth__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--auth-accent-strong);
  font-size: .74rem;
  font-weight: 600;
  text-underline-offset: 3px;
}

.kc-auth-page .kc-auth__link:hover { text-decoration: underline; }
.kc-auth-page .kc-auth__link--muted { color: var(--auth-muted); }

.kc-auth-page .kc-auth__notice {
  margin-top: 25px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--auth-line);
  color: var(--auth-subtle);
  font-size: .69rem;
  line-height: 1.55;
}

.kc-auth-page .kc-auth__notice svg { color: var(--auth-accent); }

.kc-auth-page .kc-error,
.kc-auth-page .kc-field__error {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--auth-danger);
  font-size: .72rem;
}

.kc-auth-page .kc-hint {
  color: var(--auth-subtle);
  font-size: .7rem;
  line-height: 1.5;
}

.kc-auth-page .kc-auth__foot {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 12px clamp(24px, 4vw, 56px);
  color: var(--auth-subtle);
  font-size: .65rem;
}

.kc-auth-page :where(a, button, input):focus-visible {
  outline: 2px solid var(--auth-accent);
  outline-offset: 3px;
}

@keyframes auth-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .kc-auth-page .kc-auth { grid-template-columns: minmax(340px, 40%) minmax(0, 60%); }
  .kc-auth-page .kc-auth__brand-panel { padding: 34px; }
  .kc-auth-page .kc-auth__brand-copy h2 { font-size: clamp(2.8rem, 5.4vw, 4rem); }
}

@media (max-width: 760px) {
  .kc-auth-page .kc-auth { display: block; min-height: 100dvh; }
  .kc-auth-page .kc-auth__brand-panel { display: none; }
  .kc-auth-page .kc-auth__workspace { min-height: 100dvh; }
  .kc-auth-page .kc-auth__topbar { min-height: 70px; justify-content: space-between; padding-inline: 20px; border-bottom: 1px solid #edf0f5; }
  .kc-auth-page .kc-auth__mobile-brand { width: 132px; display: inline-flex; }
  .kc-auth-page .kc-auth__nav a:first-child { display: none; }
  .kc-auth-page .kc-auth__main { place-items: start center; padding: clamp(44px, 8vh, 72px) 24px 44px; }
  .kc-auth-page .kc-auth__card { width: min(100%, 430px); }
  .kc-auth-page .kc-auth__foot { justify-content: space-between; }
}

@media (max-width: 430px) {
  .kc-auth-page .kc-auth__topbar { padding-inline: 18px 10px; }
  .kc-auth-page .kc-auth__mobile-brand { width: 124px; }
  .kc-auth-page .kc-auth__main { padding-inline: 20px; }
  .kc-auth-page .kc-auth__title { font-size: 2.35rem; }
  .kc-auth-page .kc-auth__foot { flex-direction: column; gap: 4px; padding-block: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .kc-auth-page *,
  .kc-auth-page *::before,
  .kc-auth-page *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
