:root {
  --auth-paper: 250 248 244;
  --auth-paper-100: 242 239 232;
  --auth-line: 224 219 208;
  --auth-ink: 46 43 38;
  --auth-ink-soft: 110 104 93;
  --auth-meta: 158 151 137;
  --auth-emerald: 6 66 50;
  --auth-emerald-deep: 4 48 37;
  --auth-mint: 110 231 183;
  --auth-cream: 245 243 235;
  --auth-error: 180 55 55;
  --auth-font: "Geist", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --auth-serif: "Fraunces", Georgia, serif;
}

.stepscale-auth-body,
.stepscale-auth-body * {
  box-sizing: border-box;
}

.stepscale-auth-body {
  min-height: 100%;
  margin: 0;
  color: rgb(var(--auth-ink));
  background: rgb(var(--auth-paper));
  font-family: var(--auth-font);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  min-height: 100vh;
}

.auth-brand {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  overflow: hidden;
  padding: 44px 56px;
  color: rgb(var(--auth-cream));
  background: radial-gradient(
    120% 80% at 15% 0%,
    rgb(9 84 63) 0%,
    rgb(var(--auth-emerald)) 42%,
    rgb(var(--auth-emerald-deep)) 100%
  );
}

.auth-brand-wordmark {
  position: absolute;
  top: 50%;
  left: 56px;
  width: 14rem;
  height: auto;
  transform: translateY(calc(-50% - 50px));
}

.auth-brand-logo,
.auth-mobile-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-brand-logo {
  position: relative;
  z-index: 2;
}

.auth-brand-logo img,
.auth-mobile-brand img {
  display: block;
  width: 34px;
  height: 34px;
}

.auth-brand-logo span,
.auth-mobile-brand span {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.auth-brand-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: auto;
  color: rgb(245 243 235 / 0.6);
  font-size: 12.5px;
}

.auth-brand-footer-dot {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: rgb(245 243 235 / 0.4);
}

.auth-radar {
  position: absolute;
  z-index: 1;
  right: -160px;
  bottom: -160px;
  width: 620px;
  height: 620px;
  opacity: 0.9;
  pointer-events: none;
}

.auth-radar circle {
  fill: none;
  stroke: rgb(var(--auth-cream));
  stroke-opacity: 0.07;
}

.auth-radar .auth-radar-sweep {
  stroke: rgb(var(--auth-mint));
  stroke-opacity: 0.16;
}

.auth-radar .auth-radar-blip {
  fill: rgb(var(--auth-mint));
  fill-opacity: 0.5;
}

.auth-pane {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
}

.auth-card {
  width: 100%;
  max-width: 392px;
}

.auth-mobile-brand {
  display: none;
  justify-content: center;
  margin-bottom: 30px;
}

.auth-mobile-brand span {
  color: rgb(var(--auth-ink));
  font-size: 20px;
}

.auth-card-header {
  margin-bottom: 28px;
}

.auth-heading {
  margin: 0 0 7px;
  color: rgb(var(--auth-ink));
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.auth-description,
.auth-copy {
  margin: 0;
  color: rgb(var(--auth-ink-soft));
  font-size: 14.5px;
  line-height: 1.55;
}

.auth-copy + .auth-copy {
  margin-top: 14px;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-field label,
.auth-label {
  display: block;
  margin-bottom: 7px;
  color: rgb(var(--auth-ink));
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.auth-input,
.auth-field input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid rgb(var(--auth-line));
  border-radius: 10px;
  outline: none;
  background: #fff;
  color: rgb(var(--auth-ink));
  font: 14.5px var(--auth-font);
  transition:
    border-color 0.14s,
    box-shadow 0.14s;
}

.auth-input::placeholder,
.auth-field input::placeholder {
  color: rgb(var(--auth-meta));
}

.auth-input:focus,
.auth-field input:focus {
  border-color: rgb(var(--auth-emerald));
  box-shadow: 0 0 0 3px rgb(6 66 50 / 0.12);
}

.auth-password-input {
  position: relative;
}

.auth-password-input input {
  padding-right: 46px;
}

.auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 4px;
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: rgb(var(--auth-meta));
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
  transition:
    color 0.14s,
    background 0.14s;
}

.auth-password-toggle:hover {
  color: rgb(var(--auth-emerald));
  background: rgb(var(--auth-paper-100));
}

.auth-password-toggle:focus-visible {
  outline: 2px solid rgb(var(--auth-emerald));
  outline-offset: 1px;
}

.auth-password-toggle svg {
  width: 18px;
  height: 18px;
}

.auth-password-toggle .auth-eye-hidden,
.auth-password-toggle[data-visible="true"] .auth-eye-visible {
  display: none;
}

.auth-password-toggle[data-visible="true"] .auth-eye-hidden {
  display: block;
}

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

.auth-button {
  display: inline-flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font: 600 14.5px var(--auth-font);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition:
    background 0.14s,
    border-color 0.14s,
    box-shadow 0.14s,
    transform 0.04s;
}

.auth-button:active {
  transform: translateY(0.5px);
}

.auth-button:focus-visible {
  outline: 3px solid rgb(var(--auth-mint));
  outline-offset: 3px;
  box-shadow: 0 0 0 1px rgb(var(--auth-emerald));
}

.auth-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.auth-button-primary {
  color: rgb(var(--auth-mint));
  background: rgb(var(--auth-emerald));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.08),
    0 1px 2px rgb(0 0 0 / 0.12);
}

.auth-button-primary:hover {
  color: rgb(var(--auth-mint));
  background: rgb(var(--auth-emerald-deep));
  text-decoration: none;
}

.auth-button-secondary {
  border-color: rgb(var(--auth-line));
  color: rgb(var(--auth-ink));
  background: #fff;
  box-shadow: 0 1px 1px rgb(46 43 38 / 0.03);
}

.auth-button-secondary:hover {
  border-color: rgb(var(--auth-meta));
  color: rgb(var(--auth-ink));
  background: rgb(var(--auth-paper-100));
  text-decoration: none;
}

.auth-button svg,
.auth-button img {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.auth-primary-arrow {
  transition: transform 0.16s;
}

.auth-button-primary:hover .auth-primary-arrow {
  transform: translateX(2px);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  color: rgb(var(--auth-meta));
  font-size: 12px;
  letter-spacing: 0.02em;
}

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

.auth-socials {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-link,
.stepscale-auth-body .text-hyperlink {
  border: 0;
  padding: 0;
  color: rgb(var(--auth-emerald));
  background: transparent;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.auth-link:hover,
.stepscale-auth-body .text-hyperlink:hover {
  color: rgb(var(--auth-emerald-deep));
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-helper-row,
.auth-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.auth-helper-row {
  margin-top: -2px;
  font-size: 12.5px;
}

.auth-actions {
  margin-top: 26px;
}

.auth-actions-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 26px;
  text-align: center;
}

.auth-legal,
.auth-meta {
  color: rgb(var(--auth-meta));
  font-size: 12px;
  line-height: 1.6;
}

.auth-legal {
  margin: 26px 0 0;
  text-align: center;
}

.auth-legal a {
  color: rgb(var(--auth-ink-soft));
  text-decoration: underline;
  text-underline-offset: 2px;
}

.auth-error {
  color: rgb(var(--auth-error));
  font-size: 12px;
}

.auth-alert {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid rgb(180 55 55 / 0.24);
  border-radius: 10px;
  color: rgb(var(--auth-error));
  background: rgb(180 55 55 / 0.06);
  font-size: 13px;
  line-height: 1.45;
}

.auth-status-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: 50%;
  color: rgb(var(--auth-emerald));
  background: rgb(var(--auth-paper-100));
}

.auth-status-icon svg {
  width: 24px;
  height: 24px;
}

.auth-password-list {
  display: grid;
  gap: 6px;
  margin: 2px 0 0;
  padding-left: 20px;
  color: rgb(var(--auth-ink-soft));
  font-size: 12.5px;
  line-height: 1.35;
}

.auth-password-list .new-password-text-success,
.auth-success {
  color: rgb(var(--auth-emerald));
}

.auth-inline-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
}

.auth-resend {
  position: relative;
}

.auth-message {
  margin-top: 8px;
  font-size: 12px;
}

@media (max-width: 900px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-brand {
    display: none;
  }

  .auth-pane {
    min-height: 100vh;
    padding: 36px 24px;
  }

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

@media (max-width: 420px) {
  .auth-pane {
    align-items: flex-start;
    padding: 28px 20px;
  }

  .auth-card {
    margin: auto 0;
  }

  .auth-actions,
  .auth-inline-group {
    align-items: stretch;
    flex-direction: column;
  }
}
