:root {
  color-scheme: dark;
  --ks-canvas: #041027;
  --ks-canvas-deep: #020817;
  --ks-surface: rgba(8, 24, 51, 0.82);
  --ks-surface-raised: rgba(12, 31, 62, 0.94);
  --ks-surface-input: rgba(5, 18, 41, 0.78);
  --ks-text: #f8fbff;
  --ks-text-soft: #b8c7dd;
  --ks-text-muted: #7f93b0;
  --ks-border: rgba(137, 168, 207, 0.2);
  --ks-border-strong: rgba(137, 168, 207, 0.38);
  --ks-gold: #e8bd3f;
  --ks-gold-light: #ffe492;
  --ks-cyan: #37c8eb;
  --ks-success: #6fd5a0;
  --ks-danger: #ff8f98;
  --ks-focus: #65d8f4;
  --ks-radius-sm: 12px;
  --ks-radius-md: 18px;
  --ks-radius-lg: 28px;
  --ks-shadow-panel: 0 36px 90px rgba(0, 6, 20, 0.52);
  --ks-motion-fast: 160ms;
  --ks-motion-base: 280ms;
  --ks-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  min-width: 320px;
  font-size: 16px;
  background: var(--ks-canvas-deep);
}

body.ks-login {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ks-text);
  font-family: "Manrope", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 14% 18%, rgba(20, 104, 185, 0.2), transparent 31rem),
    radial-gradient(circle at 86% 82%, rgba(232, 189, 63, 0.12), transparent 28rem),
    linear-gradient(135deg, var(--ks-canvas-deep) 0%, var(--ks-canvas) 52%, #071b38 100%);
}

body.ks-login::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(99, 152, 208, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 152, 208, 0.08) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.ks-skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  color: #081225;
  background: var(--ks-gold-light);
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform var(--ks-motion-fast) ease;
}

.ks-skip-link:focus {
  transform: translateY(0);
}

.ks-login__topbar {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 20;
  width: min(1460px, calc(100% - 64px));
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transform: translateX(-50%);
}

.ks-login__brand,
.ks-login__back {
  text-decoration: none;
}

.ks-login__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
}

.ks-login__brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 13px;
  box-shadow: 0 10px 28px rgba(0, 5, 18, 0.35);
}

.ks-login__brand span {
  display: grid;
  gap: 1px;
}

.ks-login__brand strong {
  font-family: "Sora", sans-serif;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.ks-login__brand small {
  color: var(--ks-text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.ks-login__top-actions,
.ks-login__status,
.ks-login__back {
  display: inline-flex;
  align-items: center;
}

.ks-login__top-actions {
  gap: 20px;
}

.ks-login__status {
  gap: 8px;
  color: var(--ks-text-soft);
  font-size: 12px;
  font-weight: 700;
}

.ks-login__status i,
.ks-auth-card__trust i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ks-success);
  box-shadow: 0 0 0 5px rgba(111, 213, 160, 0.12), 0 0 18px rgba(111, 213, 160, 0.65);
}

.ks-login__back {
  min-height: 44px;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid var(--ks-border);
  border-radius: 999px;
  color: var(--ks-text-soft);
  font-size: 12px;
  font-weight: 800;
  transition: color var(--ks-motion-fast) ease, border-color var(--ks-motion-fast) ease, background var(--ks-motion-fast) ease;
}

.ks-login__back:hover {
  color: var(--ks-text);
  border-color: var(--ks-border-strong);
  background: rgba(255, 255, 255, 0.05);
}

.ks-login__back svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ks-auth-shell {
  position: relative;
  z-index: 1;
  width: min(1460px, calc(100% - 64px));
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 112px 0 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(420px, 0.76fr);
  align-items: center;
  gap: clamp(42px, 6vw, 104px);
}

.ks-auth-visual {
  min-width: 0;
  padding-left: clamp(4px, 2vw, 28px);
}

.ks-auth-visual__copy {
  max-width: 760px;
}

.ks-auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: #b9d9f3;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.ks-auth-eyebrow span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ks-cyan);
  box-shadow: 0 0 18px rgba(55, 200, 235, 0.9);
}

.ks-auth-visual h1 {
  max-width: 800px;
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(42px, 5.35vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.ks-auth-visual h1 span {
  display: block;
  margin-top: 8px;
  color: var(--ks-gold-light);
}

.ks-auth-visual__copy > p:last-child {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--ks-text-soft);
  font-size: 16px;
  line-height: 1.75;
}

.ks-control-stage {
  --stage-rx: 0deg;
  --stage-ry: 0deg;
  position: relative;
  width: min(720px, 100%);
  height: 320px;
  margin: 32px 0 20px;
  perspective: 1100px;
  transform-style: preserve-3d;
  transform: rotateX(var(--stage-rx)) rotateY(var(--stage-ry));
  transition: transform 420ms var(--ks-ease);
}

.ks-control-stage__grid {
  position: absolute;
  inset: 38px 6% 10px;
  opacity: 0.32;
  border: 1px solid rgba(55, 200, 235, 0.13);
  border-radius: 50%;
  background-image:
    linear-gradient(rgba(55, 200, 235, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(55, 200, 235, 0.18) 1px, transparent 1px);
  background-size: 28px 28px;
  transform: rotateX(62deg) translateZ(-48px);
  box-shadow: inset 0 0 70px rgba(2, 8, 23, 0.95), 0 0 70px rgba(26, 120, 202, 0.12);
}

.ks-control-stage__halo {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
}

.ks-control-stage__halo--one {
  inset: 38px 25% 30px;
  background: radial-gradient(circle, rgba(55, 200, 235, 0.19), transparent 68%);
}

.ks-control-stage__halo--two {
  width: 190px;
  height: 190px;
  right: 8%;
  bottom: 8px;
  background: radial-gradient(circle, rgba(232, 189, 63, 0.17), transparent 70%);
}

.ks-control-stage__orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(116, 192, 235, 0.22);
  border-radius: 50%;
  transform-style: preserve-3d;
}

.ks-control-stage__orbit--one {
  width: 300px;
  height: 164px;
  margin: -82px 0 0 -150px;
  transform: rotate(-12deg) rotateX(60deg);
  animation: ks-orbit-one 9s linear infinite;
}

.ks-control-stage__orbit--two {
  width: 420px;
  height: 220px;
  margin: -110px 0 0 -210px;
  transform: rotate(14deg) rotateX(65deg);
  animation: ks-orbit-two 14s linear infinite reverse;
}

.ks-control-stage__orbit span {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ks-cyan);
  box-shadow: 0 0 16px currentColor;
}

.ks-control-stage__orbit--two span {
  color: var(--ks-gold);
  background: var(--ks-gold);
}

.ks-control-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 176px;
  min-height: 176px;
  padding: 22px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(151, 193, 228, 0.28);
  border-radius: 50%;
  background: radial-gradient(circle at 36% 24%, rgba(32, 87, 146, 0.96), rgba(5, 18, 42, 0.97) 62%);
  box-shadow: 0 34px 70px rgba(0, 5, 20, 0.46), inset 0 0 36px rgba(79, 180, 235, 0.12);
  transform: translate(-50%, -50%) translateZ(60px);
}

.ks-control-core__pulse {
  position: absolute;
  inset: -12px;
  border: 1px solid rgba(55, 200, 235, 0.28);
  border-radius: 50%;
  animation: ks-pulse 2.6s ease-out infinite;
}

.ks-control-core img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 3px;
}

.ks-control-core strong {
  font-family: "Sora", sans-serif;
  font-size: 13px;
}

.ks-control-core small {
  margin-top: 3px;
  color: var(--ks-text-muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.ks-control-node {
  position: absolute;
  min-width: 154px;
  padding: 12px 14px;
  display: grid;
  gap: 3px;
  border: 1px solid rgba(139, 179, 216, 0.22);
  border-radius: 15px;
  background: rgba(7, 22, 48, 0.82);
  box-shadow: 0 16px 40px rgba(0, 6, 20, 0.34);
  backdrop-filter: blur(14px);
}

.ks-control-node small {
  color: var(--ks-text-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ks-control-node strong {
  font-family: "Sora", sans-serif;
  font-size: 14px;
}

.ks-control-node span {
  color: var(--ks-success);
  font-size: 9px;
  font-weight: 800;
}

.ks-control-node--sales {
  top: 12px;
  left: 4%;
  transform: translateZ(96px) rotate(-2deg);
}

.ks-control-node--stock {
  top: 32px;
  right: 0;
  transform: translateZ(74px) rotate(2deg);
}

.ks-control-node--cash {
  right: 10%;
  bottom: 4px;
  min-width: 126px;
  transform: translateZ(112px) rotate(-1deg);
}

.ks-auth-proof {
  max-width: 720px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ks-border);
}

.ks-auth-proof article {
  min-width: 0;
  padding: 17px 18px 0 0;
  display: flex;
  gap: 10px;
}

.ks-auth-proof article + article {
  padding-left: 18px;
  border-left: 1px solid var(--ks-border);
}

.ks-auth-proof span {
  color: var(--ks-gold);
  font-family: "Sora", sans-serif;
  font-size: 10px;
  font-weight: 700;
}

.ks-auth-proof div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.ks-auth-proof strong {
  font-size: 11px;
}

.ks-auth-proof small {
  color: var(--ks-text-muted);
  font-size: 9px;
  line-height: 1.45;
}

.ks-auth-panel {
  position: relative;
  width: 100%;
  max-width: 500px;
  justify-self: end;
}

.ks-auth-panel__glow {
  position: absolute;
  inset: 14% 0 -10% -12%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 124, 204, 0.22), transparent 66%);
  filter: blur(22px);
}

.ks-auth-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 46px);
  border: 1px solid var(--ks-border-strong);
  border-radius: var(--ks-radius-lg);
  background:
    linear-gradient(145deg, rgba(16, 40, 76, 0.9), rgba(5, 17, 39, 0.94)),
    var(--ks-surface-raised);
  box-shadow: var(--ks-shadow-panel), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(22px) saturate(130%);
}

.ks-auth-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 86% 2%, rgba(232, 189, 63, 0.12), transparent 25%),
    linear-gradient(110deg, transparent 0 46%, rgba(255, 255, 255, 0.025) 46% 47%, transparent 47% 100%);
}

.ks-auth-card > * {
  position: relative;
}

.ks-auth-card__head {
  margin-bottom: 28px;
}

.ks-auth-card__badge {
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 17px;
  padding: 0 10px;
  border: 1px solid rgba(111, 213, 160, 0.24);
  border-radius: 999px;
  color: #aeeacb;
  background: rgba(111, 213, 160, 0.08);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ks-auth-card__badge svg,
.ks-auth-message svg,
.ks-field__control > svg,
.ks-password-toggle svg,
.ks-auth-submit svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ks-auth-card__badge svg {
  width: 15px;
}

.ks-auth-card__head h2 {
  margin: 0;
  font-family: "Sora", sans-serif;
  font-size: clamp(28px, 3vw, 39px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.ks-auth-card__head p {
  margin: 11px 0 0;
  color: var(--ks-text-soft);
  font-size: 14px;
  line-height: 1.6;
}

.ks-auth-message {
  min-height: 58px;
  margin: -7px 0 22px;
  padding: 11px 13px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid;
  border-radius: var(--ks-radius-sm);
  font-size: 12px;
  line-height: 1.5;
  outline: none;
}

.ks-auth-message svg {
  width: 19px;
  flex: 0 0 19px;
  margin-top: 2px;
}

.ks-auth-message span {
  display: grid;
  gap: 2px;
}

.ks-auth-message--error {
  color: #ffd8dc;
  border-color: rgba(255, 143, 152, 0.32);
  background: rgba(149, 39, 53, 0.2);
}

.ks-auth-message--success {
  color: #ccf5df;
  border-color: rgba(111, 213, 160, 0.3);
  background: rgba(28, 114, 75, 0.18);
}

.ks-auth-message:focus-visible {
  box-shadow: 0 0 0 3px rgba(101, 216, 244, 0.25);
}

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

.ks-field,
.ks-field__label-row {
  display: grid;
}

.ks-field {
  gap: 8px;
}

.ks-field__label-row {
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
}

.ks-field label {
  color: #e7eef9;
  font-size: 12px;
  font-weight: 800;
}

.ks-field__label-row a {
  color: var(--ks-gold-light);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.ks-field__label-row a:hover,
.ks-auth-register a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ks-field__control {
  position: relative;
  min-height: 54px;
  display: flex;
  align-items: center;
  border: 1px solid var(--ks-border);
  border-radius: var(--ks-radius-sm);
  background: var(--ks-surface-input);
  transition: border-color var(--ks-motion-fast) ease, box-shadow var(--ks-motion-fast) ease, background var(--ks-motion-fast) ease;
}

.ks-field__control:hover {
  border-color: var(--ks-border-strong);
  background: rgba(8, 26, 57, 0.92);
}

.ks-field__control:focus-within {
  border-color: var(--ks-focus);
  background: rgba(8, 27, 59, 0.98);
  box-shadow: 0 0 0 4px rgba(55, 200, 235, 0.13), 0 10px 28px rgba(0, 8, 24, 0.24);
}

.ks-field__control:has(input[aria-invalid="true"]) {
  border-color: rgba(255, 143, 152, 0.7);
}

.ks-field__control > svg {
  position: absolute;
  left: 16px;
  width: 19px;
  color: var(--ks-text-muted);
  pointer-events: none;
  transition: color var(--ks-motion-fast) ease;
}

.ks-field__control:focus-within > svg {
  color: var(--ks-cyan);
}

.ks-field input {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0 16px 0 47px;
  border: 0;
  outline: 0;
  color: var(--ks-text);
  background: transparent;
  font-size: 16px;
  caret-color: var(--ks-gold-light);
}

.ks-field__control--password input {
  padding-right: 58px;
}

.ks-field input::placeholder {
  color: #6d83a2;
  opacity: 1;
}

.ks-field input:-webkit-autofill,
.ks-field input:-webkit-autofill:hover,
.ks-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ks-text);
  box-shadow: 0 0 0 1000px #0a2146 inset;
  transition: background-color 9999s ease-in-out 0s;
}

.ks-field > small {
  color: var(--ks-text-muted);
  font-size: 10px;
  line-height: 1.45;
}

.ks-password-toggle {
  position: absolute;
  right: 5px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  color: var(--ks-text-muted);
  background: transparent;
  cursor: pointer;
  transition: color var(--ks-motion-fast) ease, background var(--ks-motion-fast) ease;
}

.ks-password-toggle:hover {
  color: var(--ks-text);
  background: rgba(255, 255, 255, 0.06);
}

.ks-password-toggle svg {
  width: 20px;
}

.ks-password-toggle__hide,
.ks-password-toggle[aria-pressed="true"] .ks-password-toggle__show {
  display: none;
}

.ks-password-toggle[aria-pressed="true"] .ks-password-toggle__hide {
  display: block;
}

.ks-auth-submit {
  position: relative;
  min-height: 56px;
  margin-top: 3px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 14px;
  color: #0a1730;
  background: linear-gradient(110deg, #ffe59a 0%, var(--ks-gold) 48%, #d9a719 100%);
  box-shadow: 0 15px 38px rgba(219, 165, 29, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  font-family: "Sora", sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform var(--ks-motion-fast) ease, box-shadow var(--ks-motion-fast) ease, filter var(--ks-motion-fast) ease;
}

.ks-auth-submit::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0;
  background: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, 0.48) 50%, transparent 75%);
  transform: translateX(-100%);
  transition: opacity var(--ks-motion-fast) ease;
}

.ks-auth-submit:hover {
  filter: brightness(1.04);
  box-shadow: 0 19px 42px rgba(219, 165, 29, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.ks-auth-submit:hover::before {
  opacity: 1;
  animation: ks-shimmer 1.1s ease;
}

.ks-auth-submit:active {
  transform: translateY(0) scale(0.99);
}

.ks-auth-submit svg {
  width: 19px;
  transition: transform var(--ks-motion-fast) ease;
}

.ks-auth-submit:hover svg {
  transform: translateX(3px);
}

.ks-auth-submit__loading,
.ks-auth-submit i {
  display: none;
}

.ks-auth-submit.is-loading {
  pointer-events: none;
}

.ks-auth-submit.is-loading .ks-auth-submit__label,
.ks-auth-submit.is-loading svg {
  display: none;
}

.ks-auth-submit.is-loading .ks-auth-submit__loading,
.ks-auth-submit.is-loading i {
  display: inline-block;
}

.ks-auth-submit.is-loading i {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(10, 23, 48, 0.26);
  border-top-color: #0a1730;
  border-radius: 50%;
  animation: ks-spin 700ms linear infinite;
}

.ks-auth-register {
  margin: -2px 0 0;
  color: var(--ks-text-muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.ks-auth-register a {
  color: var(--ks-gold-light);
  font-weight: 800;
  text-decoration: none;
}

.ks-auth-card__trust {
  margin-top: 24px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--ks-border);
  color: var(--ks-text-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.ks-auth-card__trust span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.ks-login :focus-visible {
  outline: 3px solid var(--ks-focus);
  outline-offset: 3px;
}

.ks-enter {
  opacity: 0;
  transform: translateY(18px);
  animation: ks-enter 720ms var(--ks-ease) forwards;
  animation-delay: var(--enter-delay, 0ms);
}

@keyframes ks-enter {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ks-pulse {
  0% { opacity: 0.7; transform: scale(0.92); }
  75%, 100% { opacity: 0; transform: scale(1.16); }
}

@keyframes ks-orbit-one {
  to { transform: rotate(348deg) rotateX(60deg); }
}

@keyframes ks-orbit-two {
  to { transform: rotate(374deg) rotateX(65deg); }
}

@keyframes ks-shimmer {
  to { transform: translateX(100%); }
}

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

@media (max-width: 1180px) {
  .ks-auth-shell {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.82fr);
    gap: 42px;
  }

  .ks-auth-visual h1 {
    font-size: clamp(42px, 5.3vw, 64px);
  }

  .ks-control-stage {
    height: 286px;
  }

  .ks-control-node--stock {
    right: -2%;
  }
}

@media (max-width: 980px) {
  .ks-login__topbar,
  .ks-auth-shell {
    width: min(720px, calc(100% - 32px));
  }

  .ks-login__topbar {
    position: relative;
    left: auto;
    min-height: 78px;
    margin: 0 auto;
    transform: none;
  }

  .ks-auth-shell {
    min-height: auto;
    padding: 24px 0 54px;
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .ks-auth-panel {
    max-width: 620px;
    justify-self: center;
    order: -1;
  }

  .ks-auth-visual {
    padding: 0;
  }

  .ks-auth-visual__copy {
    max-width: 680px;
    text-align: center;
  }

  .ks-auth-eyebrow {
    justify-content: center;
  }

  .ks-auth-visual h1 {
    font-size: clamp(39px, 8vw, 62px);
  }

  .ks-auth-visual__copy > p:last-child {
    margin-left: auto;
    margin-right: auto;
  }

  .ks-control-stage {
    margin-left: auto;
    margin-right: auto;
  }

  .ks-auth-proof {
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .ks-login__topbar,
  .ks-auth-shell {
    width: min(100% - 24px, 520px);
  }

  .ks-login__brand small,
  .ks-login__status {
    display: none;
  }

  .ks-login__top-actions {
    gap: 0;
  }

  .ks-login__back {
    padding: 0 11px;
    font-size: 0;
  }

  .ks-login__back svg {
    width: 20px;
  }

  .ks-auth-shell {
    padding-top: 14px;
    gap: 44px;
  }

  .ks-auth-card {
    padding: 27px 20px 22px;
    border-radius: 22px;
  }

  .ks-auth-card__head {
    margin-bottom: 24px;
  }

  .ks-auth-card__head h2 {
    font-size: 30px;
  }

  .ks-auth-visual h1 {
    font-size: clamp(35px, 11vw, 50px);
  }

  .ks-auth-visual__copy > p:last-child {
    font-size: 14px;
  }

  .ks-control-stage {
    height: 250px;
    margin-top: 24px;
  }

  .ks-control-stage__orbit--one {
    width: 240px;
    height: 136px;
    margin: -68px 0 0 -120px;
  }

  .ks-control-stage__orbit--two {
    width: 330px;
    height: 180px;
    margin: -90px 0 0 -165px;
  }

  .ks-control-core {
    width: 144px;
    min-height: 144px;
    padding: 16px;
  }

  .ks-control-core img {
    width: 48px;
    height: 48px;
  }

  .ks-control-node {
    min-width: 126px;
    padding: 9px 11px;
  }

  .ks-control-node strong {
    font-size: 11px;
  }

  .ks-control-node--sales {
    left: 0;
  }

  .ks-control-node--stock {
    right: 0;
  }

  .ks-control-node--cash {
    right: 4%;
    min-width: 104px;
  }

  .ks-auth-proof {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .ks-auth-proof article,
  .ks-auth-proof article + article {
    padding: 13px 0;
    border-left: 0;
  }

  .ks-auth-proof article + article {
    border-top: 1px solid var(--ks-border);
  }

  .ks-auth-card__trust {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }
}

@media (max-height: 760px) and (min-width: 981px) {
  .ks-auth-shell {
    padding-top: 96px;
    padding-bottom: 28px;
  }

  .ks-auth-visual h1 {
    font-size: clamp(40px, 4.6vw, 66px);
  }

  .ks-control-stage {
    height: 250px;
    margin-top: 18px;
    margin-bottom: 8px;
  }

  .ks-auth-card {
    padding-top: 30px;
    padding-bottom: 28px;
  }
}

@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;
  }

  .ks-enter {
    opacity: 1;
    transform: none;
  }

  .ks-control-stage {
    transform: none !important;
  }
}

