:root {
  --auth-ink: #151922;
  --auth-muted: #677184;
  --auth-subtle: #8b94a5;
  --auth-canvas: #f4f6f8;
  --auth-field: #ffffff;
  --auth-border: #d9dee7;
  --auth-border-strong: #bcc5d2;
  --auth-dark: #09111f;
  --auth-dark-raised: #101b2d;
  --auth-dark-border: #25334a;
  --auth-accent: #ff8a1f;
  --auth-accent-hover: #f47a0b;
  --auth-success: #16a879;
  --auth-danger: #d83c52;
}

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

html {
  color-scheme: light;
  background: var(--auth-canvas);
}

body.login-page,
body.register-page {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  color: var(--auth-ink) !important;
  background: var(--auth-canvas) !important;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.auth-layout {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(360px, 42%) minmax(0, 1fr);
}

.auth-showcase {
  min-height: 100dvh;
  padding: 44px clamp(38px, 5vw, 76px) 36px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  color: #f7f9fc;
  background: var(--auth-dark);
  border-right: 1px solid #18263b;
}

.auth-showcase::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--auth-accent);
}

.auth-brand,
.auth-mobile-brand {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit !important;
  text-decoration: none;
}

.auth-brand-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  color: #261505;
  background: var(--auth-accent);
}

.auth-brand-icon svg {
  width: 22px;
  height: 22px;
}

.auth-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.auth-brand-copy strong,
.auth-mobile-brand > strong {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.auth-brand-copy small {
  color: #9eacc1;
  font-size: 0.64rem;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.auth-showcase-content {
  width: 100%;
  max-width: 500px;
  margin: auto 0;
  padding: 54px 0;
}

.auth-kicker,
.auth-eyebrow {
  display: block;
  color: var(--auth-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.auth-showcase h1 {
  max-width: 480px;
  margin: 14px 0 0;
  color: #ffffff;
  font-size: 2.65rem;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
}

.auth-showcase-content > p {
  max-width: 470px;
  margin: 18px 0 0;
  color: #a9b6c9;
  font-size: 0.96rem;
  line-height: 1.65;
}

.auth-showcase-footer {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #8f9db2;
  font-size: 0.74rem;
}

.auth-showcase-footer i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--auth-success);
  box-shadow: 0 0 0 4px rgba(22, 168, 121, 0.14);
}

.auth-form-panel {
  min-width: 0;
  min-height: 100dvh;
  padding: 32px clamp(34px, 6vw, 92px) 26px;
  display: flex;
  flex-direction: column;
  color: var(--auth-ink);
  background: var(--auth-canvas);
}

.auth-panel-header {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.auth-mobile-brand {
  display: none;
  color: var(--auth-ink) !important;
}

.auth-mobile-brand .auth-brand-icon {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
}

.auth-mobile-brand .auth-brand-icon svg {
  width: 19px;
  height: 19px;
}

.auth-security {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #637084;
  font-size: 0.75rem;
  font-weight: 600;
}

.auth-security .material-icons {
  color: var(--auth-success);
  font-size: 16px;
}

.auth-form-wrap {
  width: 100%;
  max-width: 470px;
  margin: auto;
  padding: 44px 0;
}

.auth-form-wrap h1 {
  margin: 9px 0 0;
  color: var(--auth-ink) !important;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
}

body.login-page .auth-form-panel .login-title,
body.register-page .auth-form-panel .register-heading h1 {
  color: var(--auth-ink) !important;
}

body.login-page .auth-form-panel .login-subtitle,
body.register-page .auth-form-panel .subtitle {
  color: var(--auth-muted) !important;
}

.auth-form-wrap :is(.login-subtitle, .subtitle) {
  margin: 9px 0 0;
  color: var(--auth-muted) !important;
  font-size: 0.9rem;
  line-height: 1.55;
}

.login-footer,
.register-footer {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--auth-subtle);
  font-size: 0.7rem;
}

.login-footer a,
.register-footer a {
  color: #59677c !important;
  font-weight: 600;
  text-decoration: none;
}

.login-footer a:hover,
.register-footer a:hover {
  color: var(--auth-ink) !important;
  text-decoration: underline;
}

.auth-visual {
  max-width: 430px;
  margin-top: 38px;
  padding: 10px;
  border: 1px solid var(--auth-dark-border);
  border-radius: 8px;
  background: #0d1727;
}

.auth-visual-header {
  height: 38px;
  padding: 0 9px 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #78889f;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
}

.auth-visual-header i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--auth-success);
}

.auth-visual-row {
  min-height: 64px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  border-top: 1px solid #1d2a3e;
}

.auth-visual-row.is-active {
  border-left: 2px solid var(--auth-accent);
  background: #121e30;
}

.auth-visual-row > .material-icons {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #9fb0c7;
  background: #19263a;
  font-size: 17px;
}

.auth-visual-row div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.auth-visual-row strong {
  color: #ecf2fa;
  font-size: 0.76rem;
  font-weight: 600;
}

.auth-visual-row small {
  color: #77879e;
  font-size: 0.66rem;
}

.auth-visual-row b {
  color: var(--auth-accent);
  font-size: 0.75rem;
}

.auth-progress {
  max-width: 420px;
  margin-top: 40px;
}

.auth-progress-item {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.auth-progress-item b {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border: 1px solid #33435c;
  border-radius: 50%;
  color: #8493a9;
  font-size: 0.69rem;
}

.auth-progress-item.is-current b {
  border-color: var(--auth-accent);
  color: #251505;
  background: var(--auth-accent);
}

.auth-progress-item span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auth-progress-item strong {
  color: #edf2f8;
  font-size: 0.78rem;
}

.auth-progress-item small {
  color: #77879e;
  font-size: 0.68rem;
}

.auth-progress-line {
  width: 1px;
  height: 20px;
  margin-left: 17px;
  background: #2a3950;
}

@media (max-width: 960px) {
  .auth-layout {
    grid-template-columns: minmax(320px, 38%) minmax(0, 1fr);
  }

  .auth-showcase {
    padding-inline: 34px;
  }

  .auth-showcase h1 {
    font-size: 2.15rem;
  }

  .auth-visual {
    margin-top: 30px;
  }
}

@media (max-width: 780px) {
  .auth-layout {
    display: block;
  }

  .auth-showcase {
    display: none;
  }

  .auth-form-panel {
    min-height: 100dvh;
    padding: 24px 22px 20px;
  }

  .auth-panel-header {
    justify-content: space-between;
  }

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

  .auth-form-wrap {
    padding: 52px 0;
  }
}

@media (max-width: 520px) {
  .auth-form-panel {
    padding: 18px 18px 16px;
  }

  .auth-form-wrap {
    padding: 40px 0 36px;
  }

  .auth-form-wrap h1 {
    font-size: 1.65rem;
  }

  .login-footer,
  .register-footer {
    gap: 13px;
  }
}
