:root {
  --auth-ink: #102033;
  --auth-title: #071b36;
  --auth-muted: #5b7088;
  --auth-line: #d8e3ef;
  --auth-line-strong: #b8d0e5;
  --auth-surface: #ffffff;
  --auth-soft: #f4f8fc;
  --auth-blue: #11aefa;
  --auth-blue-dark: #087fc6;
  --auth-primary: #ff684d;
  --auth-primary-hover: #f0553e;
  --auth-ok: #13795b;
  --auth-ok-bg: #e9f8f1;
  --auth-bad: #b42318;
  --auth-bad-bg: #fff0ed;
  --auth-warn: #a15c00;
  --auth-warn-bg: #fff5df;
  --auth-shadow: 0 24px 70px rgba(16, 32, 51, .18);
  --auth-radius: 8px;
  --auth-font: Inter, Manrope, Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--auth-ink);
  background: #eef4f9;
  font-family: var(--auth-font);
}

body.auth-body {
  background:
    radial-gradient(circle at 12% 16%, rgba(17, 174, 250, .16), transparent 30%),
    linear-gradient(145deg, #f7fbff 0%, #eaf1f8 100%);
}

.auth-page {
  min-height: calc(100vh - 80px);
  padding: clamp(26px, 3vw, 44px) clamp(14px, 4vw, 42px);
  display: grid;
  place-items: start center;
}

.auth-shell {
  width: min(100%, 1120px);
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(360px, 430px);
  gap: clamp(26px, 5vw, 72px);
  align-items: start;
}

.auth-shell--compact {
  width: min(100%, 1040px);
  grid-template-columns: minmax(360px, .78fr) minmax(360px, 500px);
}

.auth-shell--wide {
  width: min(100%, 1180px);
  grid-template-columns: minmax(0, .85fr) minmax(420px, 620px);
}

.auth-hero {
  min-height: min(620px, calc(100vh - 190px));
  border-radius: var(--auth-radius);
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(7, 27, 54, .96), rgba(20, 48, 78, .88)),
    var(--auth-bg-image, none) center / cover no-repeat;
  box-shadow: var(--auth-shadow);
}

.auth-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -26% 18%;
  height: 260px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px 999px 0 0;
  transform: rotate(-7deg);
  pointer-events: none;
}

.auth-brand {
  display: inline-flex;
  align-items: baseline;
  width: fit-content;
  font-size: 28px;
  font-weight: 950;
  letter-spacing: -.03em;
}

.auth-brand span:last-child {
  color: var(--auth-blue);
}

.auth-hero-copy {
  max-width: 590px;
  position: relative;
  z-index: 1;
}

.auth-kicker {
  width: fit-content;
  margin: 0 0 16px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .11);
  color: rgba(255, 255, 255, .86);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.auth-hero h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: -.02em;
  overflow-wrap: break-word;
}

.auth-shell--compact .auth-hero h1 {
  font-size: clamp(31px, 3.2vw, 46px);
}

.auth-hero p {
  margin: 18px 0 0;
  max-width: 560px;
  color: rgba(255, 255, 255, .78);
  font-size: 17px;
  line-height: 1.65;
}

.auth-benefits {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.auth-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: rgba(255, 255, 255, .9);
  font-size: 14px;
  line-height: 1.45;
}

.auth-benefits li::before {
  content: "";
  width: 20px;
  height: 20px;
  margin-top: 1px;
  flex: 0 0 20px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, var(--auth-blue), #7dd3fc);
  box-shadow: 0 0 0 4px rgba(17, 174, 250, .14);
}

.auth-proof {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 34px;
}

.auth-proof span {
  min-height: 82px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--auth-radius);
  background: rgba(255, 255, 255, .09);
  color: rgba(255, 255, 255, .8);
  font-size: 12px;
  line-height: 1.4;
}

.auth-proof strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
  font-size: 18px;
  line-height: 1;
}

.auth-card-stack {
  display: grid;
  gap: 14px;
  align-self: start;
}

.auth-card {
  width: 100%;
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid rgba(216, 227, 239, .96);
  border-radius: var(--auth-radius);
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--auth-shadow);
  backdrop-filter: blur(12px);
}

.auth-page--choice {
  place-items: center;
}

.auth-choice-shell {
  width: min(100%, 980px);
  display: grid;
  gap: 28px;
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid rgba(216, 227, 239, .96);
  border-radius: var(--auth-radius);
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--auth-shadow);
}

.auth-choice-heading {
  max-width: 760px;
  display: grid;
  gap: 12px;
}

.auth-choice-heading .auth-brand {
  color: var(--auth-title);
}

.auth-choice-heading .auth-kicker {
  margin: 6px 0 0;
  border-color: rgba(17, 174, 250, .28);
  background: #effaff;
  color: var(--auth-blue-dark);
}

.auth-choice-heading h1 {
  margin: 0;
  color: var(--auth-title);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.04;
  letter-spacing: -.02em;
}

.auth-choice-heading p {
  margin: 0;
  color: var(--auth-muted);
  font-size: 17px;
  line-height: 1.6;
}

.auth-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.auth-choice-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--auth-line);
  border-radius: var(--auth-radius);
  background: #fff;
  color: var(--auth-title);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.auth-choice-card:hover,
.auth-choice-card:focus-visible {
  border-color: rgba(17, 174, 250, .5);
  background: #f8fcff;
  box-shadow: 0 16px 36px rgba(16, 32, 51, .14);
  outline: 0;
  transform: translateY(-2px);
}

.auth-choice-card--professional {
  border-color: rgba(17, 174, 250, .35);
  background: linear-gradient(180deg, #effaff, #fff);
}

.auth-choice-card__eyebrow {
  padding: 6px 10px;
  border-radius: 999px;
  background: #eaf3fb;
  color: var(--auth-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.auth-choice-card h2 {
  margin: 0;
  color: var(--auth-title);
  font-size: 28px;
  line-height: 1.1;
}

.auth-choice-card p {
  margin: 0;
  color: var(--auth-muted);
  font-size: 16px;
  line-height: 1.58;
}

.auth-choice-card__button {
  width: 100%;
  min-height: 50px;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--auth-radius);
  background: var(--auth-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 12px 28px rgba(255, 104, 77, .2);
}

.auth-choice-card--professional .auth-choice-card__button {
  background: var(--auth-blue);
  color: var(--auth-title);
  box-shadow: 0 12px 28px rgba(17, 174, 250, .2);
}

.auth-choice-login {
  margin: 0;
  color: var(--auth-muted);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.auth-top-link {
  margin: 0 0 24px;
  color: var(--auth-muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
  text-align: center;
}

.auth-top-link a,
.auth-link {
  color: var(--auth-blue-dark);
  font-weight: 850;
  text-decoration: none;
  transition: color .18s ease, text-decoration-color .18s ease;
}

.auth-top-link a:hover,
.auth-link:hover {
  color: var(--auth-title);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.auth-card h1 {
  margin: 0 0 8px;
  color: var(--auth-title);
  font-size: clamp(27px, 3vw, 34px);
  line-height: 1.12;
  letter-spacing: -.02em;
}

.auth-card > p,
.auth-intro {
  margin: 0 0 24px;
  color: var(--auth-muted);
  font-size: 15px;
  line-height: 1.58;
}

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

.auth-panel {
  display: none;
}

.auth-panel.active {
  display: grid;
  gap: 16px;
  animation: authPanelIn .2s ease both;
}

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

.auth-field__label-row {
  min-height: 20px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.auth-label {
  color: var(--auth-ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.auth-input-shell {
  position: relative;
  display: block;
}

.auth-input-shell::before {
  content: none;
}

.auth-input,
.auth-card input,
.auth-card select,
.auth-card textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid var(--auth-line);
  border-radius: var(--auth-radius);
  background: #f8fafc;
  color: var(--auth-title);
  font: inherit;
  font-size: 15px;
  line-height: 1.3;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.auth-card textarea {
  min-height: 118px;
  resize: vertical;
}

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

.auth-reveal {
  position: absolute;
  right: 8px;
  top: 50%;
  z-index: 2;
  width: 38px;
  height: 38px;
  min-height: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  box-shadow: none;
}

.auth-reveal:hover,
.auth-reveal:focus-visible {
  border-color: #c8d7e6;
  background: #eef6ff;
  color: var(--auth-blue-dark);
  outline: 0;
}

.auth-reveal svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-reveal .auth-eye-off {
  display: none;
}

.auth-reveal.is-visible .auth-eye {
  display: none;
}

.auth-reveal.is-visible .auth-eye-off {
  display: block;
}

.auth-input:focus,
.auth-card input:focus,
.auth-card select:focus,
.auth-card textarea:focus {
  border-color: var(--auth-blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(17, 174, 250, .14);
  outline: 0;
}

.auth-input::placeholder,
.auth-card input::placeholder,
.auth-card textarea::placeholder {
  color: #8da0b4;
}

.auth-inline-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: -2px;
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--auth-ink);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  cursor: pointer;
}

.auth-check input {
  width: 18px;
  min-height: 18px;
  flex: 0 0 18px;
  padding: 0;
  accent-color: var(--auth-blue);
}

.auth-primary,
.auth-card button[type="submit"] {
  min-height: 48px;
  width: 100%;
  border: 1px solid var(--auth-primary);
  border-radius: var(--auth-radius);
  background: var(--auth-primary);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(255, 104, 77, .24);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.auth-primary:hover,
.auth-card button[type="submit"]:hover {
  background: var(--auth-primary-hover);
  box-shadow: 0 16px 34px rgba(255, 104, 77, .3);
  transform: translateY(-1px);
}

.auth-primary:focus-visible,
.auth-card button[type="submit"]:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px rgba(17, 174, 250, .18), 0 16px 34px rgba(255, 104, 77, .3);
}

.auth-card button[disabled],
.auth-primary[disabled] {
  opacity: .68;
  cursor: wait;
  transform: none;
}

.auth-secondary {
  min-height: 42px;
  border: 1px solid var(--auth-line);
  border-radius: var(--auth-radius);
  background: #fff;
  color: var(--auth-title);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.auth-secondary:hover,
.auth-secondary:focus-visible {
  border-color: var(--auth-blue);
  color: var(--auth-blue-dark);
  background: #effaff;
  outline: 0;
}

.auth-message {
  display: none;
  margin-bottom: 16px;
  padding: 11px 13px;
  border-radius: var(--auth-radius);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.auth-message.bad,
.auth-message.error {
  display: block;
  border: 1px solid #ffd4cc;
  background: var(--auth-bad-bg);
  color: var(--auth-bad);
}

.auth-message.ok {
  display: block;
  border: 1px solid #bcebd7;
  background: var(--auth-ok-bg);
  color: var(--auth-ok);
}

.auth-dev-code {
  display: none;
  margin-bottom: 14px;
  padding: 11px 13px;
  border: 1px solid #b9e9fb;
  border-radius: var(--auth-radius);
  background: #effaff;
  color: var(--auth-title);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.auth-dev-code.visible {
  display: block;
}

.auth-divider {
  margin: 22px 0;
  height: 1px;
  background: var(--auth-line);
}

.auth-foot {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--auth-line);
  color: var(--auth-muted);
  font-size: 14px;
  line-height: 1.55;
}

.auth-collaborator-link {
  display: grid;
  gap: 5px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #b9e9fb;
  border-radius: var(--auth-radius);
  background: linear-gradient(180deg, #effaff, #f8fcff);
  color: var(--auth-muted);
  font-size: 14px;
  line-height: 1.45;
}

.auth-collaborator-link strong {
  color: var(--auth-title);
}

.auth-dev-panel {
  border: 1px solid rgba(216, 227, 239, .9);
  border-radius: var(--auth-radius);
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 14px 35px rgba(16, 32, 51, .1);
  overflow: hidden;
}

.auth-dev-panel--attention {
  position: relative;
  overflow: visible;
  border-color: rgba(17, 174, 250, .72);
  background:
    linear-gradient(135deg, rgba(239, 250, 255, .98), rgba(255, 255, 255, .96) 44%, rgba(255, 247, 237, .98)),
    #fff;
  box-shadow:
    0 22px 52px rgba(16, 32, 51, .16),
    0 0 0 1px rgba(17, 174, 250, .12),
    0 0 42px rgba(17, 174, 250, .28);
  isolation: isolate;
}

.auth-dev-panel--attention::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, .72) 30%, transparent 52%),
    radial-gradient(circle at 16% 18%, rgba(17, 174, 250, .2), transparent 28%);
  background-size: 220% 100%, 100% 100%;
  opacity: .78;
  pointer-events: none;
  z-index: -1;
}

.auth-dev-panel--attention::after {
  content: none;
}

.auth-demo-attention-arrow {
  position: absolute;
  top: -58px;
  right: 24px;
  z-index: 4;
  display: grid;
  justify-items: center;
  gap: 2px;
  color: #0284c7;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
  filter: drop-shadow(0 14px 18px rgba(8, 127, 198, .28));
  pointer-events: none;
  animation: authDemoArrowFloat 1.25s ease-in-out infinite;
}

.auth-demo-attention-arrow span {
  padding: 6px 10px;
  border: 1px solid rgba(17, 174, 250, .26);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 10px 24px rgba(16, 32, 51, .1);
  white-space: nowrap;
}

.auth-demo-attention-arrow svg {
  width: 46px;
  height: 46px;
  overflow: visible;
}

.auth-demo-attention-arrow path {
  fill: none;
  stroke: currentColor;
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-dev-panel--attention.is-demo-attention-pulse {
  animation: authDemoPanelGlow 1.25s ease-out both;
}

.auth-dev-panel--attention.is-demo-attention-pulse::before {
  animation: authDemoSweep 1.25s ease-out both;
}

.auth-dev-panel--attention.is-demo-attention-pulse::after {
  animation: none;
}

.auth-dev-panel--attention.is-demo-attention-pulse .auth-demo-attention-arrow {
  animation: authDemoArrowCallout 1.25s ease-out both, authDemoArrowFloat 1.25s ease-in-out 1.25s infinite;
}

.auth-dev-panel summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 15px;
  list-style: none;
  color: var(--auth-title);
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.auth-dev-panel summary::-webkit-details-marker {
  display: none;
}

.auth-dev-panel summary::after {
  content: "+";
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #eef6fd;
  color: var(--auth-blue-dark);
  font-weight: 950;
}

.auth-dev-panel[open] summary::after {
  content: "-";
}

.auth-dev-summary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.auth-dev-summary::before {
  content: "tools";
  padding: 3px 7px;
  border-radius: 999px;
  background: #eef6fd;
  color: var(--auth-blue-dark);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.auth-dev-badge {
  padding: 3px 7px;
  border-radius: 999px;
  background: #fff1e8;
  color: #b45309;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .08em;
}

.auth-dev-panel--attention .auth-dev-badge {
  background: linear-gradient(135deg, #fff7ed, #e0f5ff);
  color: #0b6fa8;
  box-shadow: 0 0 0 1px rgba(17, 174, 250, .16), 0 8px 18px rgba(17, 174, 250, .15);
}

.auth-dev-body {
  display: grid;
  gap: 12px;
  padding: 0 15px 15px;
  color: var(--auth-muted);
  font-size: 13px;
  line-height: 1.5;
}

.auth-dev-body p {
  margin: 0;
}

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

.auth-demo-account {
  --demo-accent: #0f6fab;
  --demo-soft: #effaff;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 76px;
  min-width: 0;
  padding: 9px;
  text-align: left;
  border-color: color-mix(in srgb, var(--demo-accent) 28%, var(--auth-line));
  background:
    linear-gradient(135deg, var(--demo-soft), #fff 68%);
  box-shadow: 0 8px 18px rgba(16, 32, 51, .07);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.auth-demo-account:hover,
.auth-demo-account:focus-visible {
  border-color: var(--demo-accent);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--demo-accent) 13%, #fff), #fff 70%);
  box-shadow: 0 14px 28px rgba(16, 32, 51, .13);
  color: var(--auth-title);
  transform: translateY(-1px);
}

.auth-demo-account.is-admin {
  --demo-accent: #0f3f86;
  --demo-soft: #eef5ff;
}

.auth-demo-account.is-company {
  --demo-accent: #0f766e;
  --demo-soft: #edfbf8;
}

.auth-demo-account.is-agent {
  --demo-accent: #b45309;
  --demo-soft: #fff7ed;
}

.auth-demo-account.is-client {
  --demo-accent: #64748b;
  --demo-soft: #f8fafc;
}

.auth-demo-rank {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--demo-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--demo-accent) 28%, transparent);
}

.auth-demo-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.auth-demo-copy strong {
  overflow: hidden;
  color: var(--auth-title);
  font-size: 13px;
  line-height: 1.12;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-demo-copy small {
  overflow: hidden;
  color: var(--auth-muted);
  font-size: 9.5px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes authDemoPanelGlow {
  0% {
    box-shadow:
      0 18px 45px rgba(16, 32, 51, .14),
      0 0 0 1px rgba(17, 174, 250, .08),
      0 0 24px rgba(17, 174, 250, .16);
    transform: translateY(0);
  }
  42% {
    box-shadow:
      0 24px 56px rgba(16, 32, 51, .18),
      0 0 0 4px rgba(17, 174, 250, .11),
      0 0 46px rgba(17, 174, 250, .34);
    transform: translateY(-2px);
  }
  100% {
    box-shadow:
      0 18px 45px rgba(16, 32, 51, .14),
      0 0 0 1px rgba(17, 174, 250, .08),
      0 0 34px rgba(17, 174, 250, .22);
    transform: translateY(0);
  }
}

@keyframes authDemoSweep {
  0% {
    background-position: 130% 0, 0 0;
    opacity: .35;
  }
  55% {
    opacity: .92;
  }
  100% {
    background-position: -80% 0, 0 0;
    opacity: .72;
  }
}

@keyframes authDemoArrow {
  0%, 100% {
    opacity: .72;
    transform: translateY(0) rotate(45deg);
  }
  35% {
    opacity: 1;
    transform: translateY(8px) rotate(45deg);
  }
  68% {
    transform: translateY(3px) rotate(45deg);
  }
}

@keyframes authDemoArrowFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(12px) scale(1.04);
  }
}

@keyframes authDemoArrowCallout {
  0% {
    opacity: .75;
    transform: translateY(-4px) scale(.96);
  }
  42% {
    opacity: 1;
    transform: translateY(16px) scale(1.13);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

.auth-progress span {
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--auth-line);
  border-radius: var(--auth-radius);
  background: #f8fafc;
  color: var(--auth-muted);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.auth-progress span.is-active {
  border-color: rgba(17, 174, 250, .5);
  background: #effaff;
  color: var(--auth-blue-dark);
  box-shadow: 0 0 0 4px rgba(17, 174, 250, .08);
}

.auth-progress span.is-done {
  border-color: #bcebd7;
  background: var(--auth-ok-bg);
  color: var(--auth-ok);
}

.auth-step-block {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--auth-line);
  border-radius: var(--auth-radius);
  background: #fbfdff;
}

.auth-step-title {
  margin: 0;
  color: var(--auth-title);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.auth-password-box {
  display: grid;
  gap: 10px;
  margin-top: -4px;
  padding: 13px;
  border: 1px solid var(--auth-line);
  border-radius: var(--auth-radius);
  background: #fbfdff;
}

.auth-strength {
  display: grid;
  gap: 7px;
}

.auth-strength__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--auth-muted);
  font-size: 12px;
  font-weight: 850;
}

.auth-strength__bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5edf5;
}

.auth-strength__fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--auth-bad);
  transition: width .2s ease, background .2s ease;
}

.auth-strength[data-strength="medium"] .auth-strength__fill {
  width: 66%;
  background: #f59e0b;
}

.auth-strength[data-strength="strong"] .auth-strength__fill {
  width: 100%;
  background: var(--auth-ok);
}

.auth-strength[data-strength="weak"] .auth-strength__fill {
  width: 34%;
}

.auth-checklist {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.auth-checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--auth-muted);
  font-size: 12px;
  font-weight: 750;
}

.auth-checklist li::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 1px solid var(--auth-line-strong);
  border-radius: 999px;
  background: #fff;
}

.auth-checklist li.is-ok {
  color: var(--auth-ok);
}

.auth-checklist li.is-ok::before {
  border-color: var(--auth-ok);
  background:
    linear-gradient(135deg, var(--auth-ok), #25b581);
  box-shadow: inset 0 0 0 4px #fff;
}

.auth-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.auth-wide {
  grid-column: 1 / -1;
}

.auth-terms {
  align-items: flex-start;
  color: var(--auth-muted);
  font-size: 13px;
  line-height: 1.45;
}

.auth-terms input {
  margin-top: 1px;
}

.auth-commercial-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.auth-commercial-list li {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--auth-radius);
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .86);
  line-height: 1.45;
}

@keyframes authPanelIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1023px) {
  .auth-page {
    min-height: calc(100vh - 60px);
  }

  .auth-shell,
  .auth-shell--compact,
  .auth-shell--wide {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .auth-hero {
    min-height: auto;
    padding: 26px;
  }

  .auth-proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .auth-page {
    padding: 18px 12px 28px;
    align-items: start;
  }

  .auth-demo-attention-arrow {
    top: -66px;
    right: 18px;
  }

  .auth-hero {
    padding: 22px;
  }

  .auth-hero h1 {
    font-size: 31px;
  }

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

  .auth-card-stack,
  .auth-shell > .auth-card {
    order: -1;
  }

  .auth-proof,
  .auth-form-grid {
    grid-template-columns: 1fr;
  }

  .auth-demo-grid {
    grid-template-columns: 1fr;
  }

  .auth-choice-shell {
    padding: 22px 16px;
  }

  .auth-choice-grid {
    grid-template-columns: 1fr;
  }

  .auth-choice-card {
    min-height: 220px;
  }
}

@media (max-width: 375px) {
  .auth-page {
    padding-inline: 10px;
  }

  .auth-card {
    padding: 20px 14px;
  }

  .auth-inline-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-progress {
    gap: 6px;
  }

  .auth-progress span {
    min-height: 38px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-dev-panel--attention,
  .auth-dev-panel--attention::before,
  .auth-dev-panel--attention::after,
  .auth-demo-attention-arrow {
    animation: none !important;
  }

  .auth-dev-panel--attention::before {
    background-position: 50% 0, 0 0;
  }
}
