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

.auth__col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px 40px;
}

.auth__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: var(--ink-3);
}

.auth__top a {
  font-weight: 600;
}

.auth__body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 48px;
}

.auth__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 400px;
}

.auth__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 32px;
  line-height: 38px;
  letter-spacing: -0.03em;
}

.auth__lead {
  margin: 8px 0 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 22px;
}

.auth__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.auth__row a {
  font-weight: 500;
}

.auth__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 13px;
  color: var(--ink-3);
}

.auth__foot a {
  color: var(--ink-3);
}

.auth__foot a:hover {
  color: var(--ink);
}

.auth__mini {
  display: none;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: var(--icon-tile);
}

.auth__mini img {
  width: 62px;
  height: 62px;
  animation: float 4s var(--ease-in-out) infinite alternate;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: var(--surface);
  font: 500 13px/1 var(--font-sans);
  color: var(--ink-2);
  transition: border-color var(--dur-fast) ease, color var(--dur-fast) ease;
}

.status-pill:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.status-pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: breathe 2s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.45); }
  50% { box-shadow: 0 0 0 5px rgba(61, 220, 132, 0); }
}

.order {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px 12px 12px;
  border: 1px solid var(--tide);
  border-radius: var(--radius-lg);
  background: var(--tide-soft);
  animation: enter-up var(--dur-slow) var(--ease-out);
}

.order__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--icon-tile);
}

.order__icon img {
  width: 42px;
  height: 42px;
}

.order__text {
  display: grid;
  flex: 1;
  min-width: 0;
}

.order__label {
  font: 600 11px/14px var(--font-sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tide-ink);
}

.order__title {
  font-size: 15px;
  line-height: 20px;
}

.order__specs {
  font-size: 13px;
  line-height: 18px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.order__edit {
  flex: none;
  font-size: 14px;
  font-weight: 500;
}

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

.social__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  font: 500 15px/1 var(--font-sans);
  transition: border-color var(--dur-fast) ease, transform var(--dur-fast) ease;
}

.social__btn:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.social__btn:active {
  transform: scale(0.98);
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-3);
}

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

.strength {
  display: grid;
  gap: 10px;
  margin-top: -6px;
}

.strength__bar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.strength__segments {
  display: flex;
  flex: 1;
  gap: 4px;
}

.strength__segments i {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: var(--surface-3);
  transition: background-color var(--dur) ease;
}

.strength[data-level="1"] i:nth-child(-n + 1),
.strength[data-level="2"] i:nth-child(-n + 2) {
  background: var(--warning);
}

.strength[data-level="1"] i:nth-child(-n + 1) {
  background: var(--danger);
}

.strength[data-level="3"] i:nth-child(-n + 3),
.strength[data-level="4"] i:nth-child(-n + 4) {
  background: var(--success);
}

.strength__label {
  min-width: 76px;
  text-align: right;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--tide-ink);
  font: 500 14px/20px var(--font-sans);
  cursor: pointer;
}

.link-btn:disabled {
  color: var(--ink-3);
  cursor: default;
}

.reveal-field {
  animation: enter-up var(--dur) var(--ease-out);
}

.code {
  display: flex;
  height: 60px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface-2);
  overflow: hidden;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}

.code:focus-within {
  border-color: var(--tide);
  box-shadow: 0 0 0 1px var(--tide);
}

.code__cell {
  position: relative;
  flex: 1;
  min-width: 0;
}

.code__cell + .code__cell::before {
  content: "";
  position: absolute;
  left: 0;
  top: 32%;
  bottom: 32%;
  width: 1px;
  background: var(--line-strong);
  pointer-events: none;
}

.code__input {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: 500 24px/1 var(--font-mono);
  text-align: center;
  caret-color: var(--tide);
  outline: 0;
  transition: background-color var(--dur-fast) ease;
}

.code__input:focus {
  background: var(--tide-soft);
}

.code__input.is-filled {
  animation: digit-in 220ms var(--ease-out);
}

@keyframes digit-in {
  from {
    transform: translateY(6px) scale(0.85);
    opacity: 0.4;
  }
}

.code.is-error {
  border-color: var(--danger);
  animation: shake 360ms var(--ease-out);
}

@keyframes shake {
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.steps {
  display: flex;
  gap: 6px;
}

.steps i {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--surface-3);
  transition: background-color var(--dur) ease;
}

.steps i.is-on {
  background: var(--tide);
}

.step[hidden] {
  display: none;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: enter-up var(--dur-slow) var(--ease-out);
}

.auth__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  min-height: 560px;
  padding: 56px 56px 56px 32%;
  overflow: hidden;
  background: var(--icon-tile);
  color: var(--panel-ink);
}

.auth__dots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.auth__chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  background: rgba(14, 29, 35, 0.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  font: 500 13px/16px var(--font-sans);
  color: var(--panel-ink);
  white-space: nowrap;
  pointer-events: none;
  animation: float 5s var(--ease-in-out) infinite alternate;
  animation-delay: var(--float-delay, 0s);
}

.auth__chip svg {
  flex: none;
  color: var(--panel-accent);
}

.auth__panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 64% 38%, rgba(46, 211, 198, 0.18), transparent 50%);
  pointer-events: none;
}

.auth__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--abyss) 0%, transparent 32%);
  pointer-events: none;
}

.auth__art {
  position: absolute;
  left: 64%;
  top: 40%;
  width: min(460px, 58%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.auth__art img {
  width: 100%;
  animation: float 6s var(--ease-in-out) infinite alternate;
}

.auth__float {
  position: absolute;
  width: 100px;
  pointer-events: none;
  animation: float 5s var(--ease-in-out) infinite alternate;
}

.auth__float--slow {
  animation-duration: 7s;
  animation-delay: -2s;
}

.auth__panel-title {
  position: relative;
  margin: 0;
  max-width: 440px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 28px;
  line-height: 34px;
  letter-spacing: -0.025em;
}

.auth__panel-text {
  position: relative;
  margin: 0;
  max-width: 440px;
  color: var(--panel-ink-2);
}

.auth__panel-steps {
  position: relative;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--panel-ink-2);
}

.auth__panel-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth__panel-steps b {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: rgba(46, 211, 198, 0.16);
  color: #5fe3d8;
  font: 500 13px/1 var(--font-mono);
}

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

  .auth__panel {
    display: none;
  }

  .auth__col {
    padding: 16px;
  }

  .auth__body {
    align-items: flex-start;
    padding-block: 32px;
  }

  .auth__mini {
    display: grid;
  }

  .auth__title {
    font-size: 28px;
    line-height: 34px;
  }

  .code {
    height: 54px;
  }

  .code__input {
    font-size: 22px;
  }
}
