/* ==========================================================================
   MAKRODEL VPN — вход и регистрация (/login, /register)
   Отдельный слой интерфейса: классы с префиксом .auth-, чтобы не конфликтовать
   с лендингом (styles.css) и кабинетом (account.css).
   Токены, шрифты и палитра — как в кабинете: #0b0c10, #ff3d3d, #ff7a45.
   Только системные шрифты, никаких CDN и внешних ассетов.
   ========================================================================== */

body.auth-body {
  --auth-bg: #0b0c10;
  --auth-bg-soft: #0e1017;
  --auth-panel: rgba(21, 24, 33, 0.72);
  --auth-panel-solid: #13161f;
  --auth-border: #262b38;
  --auth-border-strong: #39404f;
  --auth-text: #f4f6fa;
  --auth-muted: #8d95a7;
  --auth-muted-2: #626a7b;
  --auth-red: #ff3d3d;
  --auth-orange: #ff7a45;
  --auth-green: #3ddc97;
  --auth-yellow: #ffc857;
  --auth-radius: 22px;
  --auth-radius-sm: 13px;
  --auth-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --auth-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
  --auth-font: "Segoe UI", system-ui, -apple-system, "Inter", Roboto, Arial, sans-serif;

  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  overflow-x: clip;
  background: var(--auth-bg);
  color: var(--auth-text);
  font-family: var(--auth-font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

body.auth-body ::selection {
  background: rgba(255, 61, 61, 0.32);
  color: #fff;
}

body.auth-body a {
  color: inherit;
  text-decoration: none;
}

body.auth-body button,
body.auth-body input {
  font: inherit;
  color: inherit;
}

body.auth-body button {
  -webkit-tap-highlight-color: transparent;
}

body.auth-body :focus-visible {
  outline: 2px solid var(--auth-orange);
  outline-offset: 3px;
  border-radius: 6px;
}

body.auth-body [hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
  background: #0b0c10;
  scrollbar-color: #3a4152 #0b0c10;
  scrollbar-width: thin;
}

html::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

html::-webkit-scrollbar-track {
  background: #0b0c10;
}

html::-webkit-scrollbar-thumb {
  border: 2px solid #0b0c10;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
}

html::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.26);
}

.auth-body h1,
.auth-body h2,
.auth-body p,
.auth-body ul {
  margin: 0;
  padding: 0;
}

.auth-body ul {
  list-style: none;
}

/* ---------- Иконки ---------- */

.auth-icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* ---------- Фон ---------- */

.auth-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(1100px 620px at 78% -12%, rgba(255, 61, 61, 0.16), transparent 68%),
    radial-gradient(820px 560px at 6% 6%, rgba(255, 122, 69, 0.1), transparent 70%),
    linear-gradient(180deg, #0c0d12 0%, #0b0c10 52%, #090a0e 100%);
}

.auth-bg__grid {
  position: absolute;
  inset: -12%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(ellipse 78% 62% at 50% 0%, #000 14%, transparent 76%);
  mask-image: radial-gradient(ellipse 78% 62% at 50% 0%, #000 14%, transparent 76%);
}

.auth-bg__glow {
  position: absolute;
  width: 54vw;
  height: 54vw;
  min-width: 420px;
  min-height: 420px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.2;
  will-change: transform;
}

.auth-bg__glow--red {
  top: -22vw;
  left: -16vw;
  background: radial-gradient(circle, #ff3d3d 0%, transparent 66%);
  animation: authFloat 19s ease-in-out infinite alternate;
}

.auth-bg__glow--orange {
  top: 4vh;
  right: -20vw;
  background: radial-gradient(circle, #ff7a45 0%, transparent 66%);
  animation: authFloat 24s ease-in-out infinite alternate-reverse;
}

.auth-bg__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 78% at 50% 28%, transparent 32%, rgba(5, 6, 9, 0.58) 100%);
}

.auth-bg__grain {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  mix-blend-mode: soft-light;
}

/* ---------- Служебное ---------- */

.auth-skip {
  position: fixed;
  top: -80px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--auth-orange);
  color: #170b05;
  font-size: 13px;
  font-weight: 700;
  transition: top 0.2s ease;
}

.auth-skip:focus {
  top: 12px;
}

/* ---------- Шапка ---------- */

.auth-top {
  position: relative;
  z-index: 2;
  padding: 18px clamp(16px, 4vw, 48px) 4px;
}

.auth-top__inner {
  width: min(1160px, 100%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.auth-brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid rgba(255, 122, 69, 0.26);
  border-radius: 12px;
  background: radial-gradient(circle at 32% 22%, rgba(255, 122, 69, 0.26), rgba(255, 61, 61, 0.1));
  color: var(--auth-orange);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.auth-brand__mark .auth-icon {
  width: 20px;
  height: 20px;
}

.auth-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.auth-brand__text b {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.auth-brand__text span {
  margin-top: 2px;
  color: var(--auth-muted-2);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.34em;
}

.auth-top__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

.auth-top__link {
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--auth-muted);
  font-size: 12.5px;
  font-weight: 600;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.auth-top__link:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.035);
  color: var(--auth-text);
}

.auth-top__cta {
  padding: 8px 14px;
  border: 1px solid rgba(255, 122, 69, 0.3);
  border-radius: 999px;
  background: rgba(255, 122, 69, 0.08);
  color: #ffb392;
  font-size: 12.5px;
  font-weight: 650;
  white-space: nowrap;
  transition: transform 0.2s var(--auth-ease), border-color 0.2s ease,
    background-color 0.2s ease, color 0.2s ease;
}

.auth-top__cta:hover {
  border-color: rgba(255, 122, 69, 0.55);
  background: rgba(255, 122, 69, 0.14);
  color: #ffd3bf;
  transform: translateY(-1px);
}

/* ---------- Каркас ---------- */

.auth-main {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  width: 100%;
  padding: clamp(22px, 3.6vw, 48px) clamp(16px, 4vw, 48px) clamp(26px, 3.6vw, 46px);
}

.auth-shell {
  width: min(1160px, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 468px);
  align-items: center;
  gap: clamp(30px, 5vw, 80px);
}

/* ---------- Левая колонка ---------- */

.auth-intro {
  min-width: 0;
  max-width: 640px;
}

.auth-intro > * {
  animation: authRise 0.65s var(--auth-ease) both;
}

.auth-intro > :nth-child(1) { animation-delay: 0.02s; }
.auth-intro > :nth-child(2) { animation-delay: 0.07s; }
.auth-intro > :nth-child(3) { animation-delay: 0.12s; }
.auth-intro > :nth-child(4) { animation-delay: 0.17s; }
.auth-intro > :nth-child(5) { animation-delay: 0.22s; }

.auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px 7px 11px;
  border: 1px solid rgba(255, 122, 69, 0.24);
  border-radius: 999px;
  background: rgba(255, 122, 69, 0.07);
  color: var(--auth-orange);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.auth-eyebrow i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--auth-red);
  box-shadow: 0 0 10px var(--auth-red);
}

.auth-title {
  margin-top: 20px;
  font-size: clamp(2.1rem, 4.2vw, 3.5rem);
  font-weight: 660;
  letter-spacing: -0.045em;
  line-height: 1.03;
  text-wrap: balance;
}

.auth-title span {
  background: linear-gradient(100deg, #ff3d3d 0%, #ff7a45 62%, #ffb26b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-lead {
  max-width: 53ch;
  margin-top: 18px;
  color: #b3bac9;
  font-size: clamp(14.5px, 1.15vw, 16.5px);
  line-height: 1.6;
}

.auth-benefits {
  display: grid;
  gap: 9px;
  margin-top: 28px;
}

.auth-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  transition: transform 0.28s var(--auth-ease), border-color 0.28s ease,
    background-color 0.28s ease;
}

.auth-benefits li:hover {
  border-color: rgba(255, 122, 69, 0.26);
  transform: translateX(3px);
}

.auth-benefits__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border: 1px solid rgba(255, 122, 69, 0.22);
  border-radius: 11px;
  background: radial-gradient(circle at 30% 20%, rgba(255, 122, 69, 0.24), rgba(255, 61, 61, 0.08));
  color: var(--auth-orange);
}

.auth-benefits__icon .auth-icon {
  width: 18px;
  height: 18px;
}

.auth-benefits__text {
  min-width: 0;
}

.auth-benefits__text b {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.auth-benefits__text small {
  display: block;
  margin-top: 2px;
  color: var(--auth-muted);
  font-size: 12.5px;
  line-height: 1.5;
}

.auth-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.auth-platforms span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--auth-muted);
  font-size: 12px;
  line-height: 1;
}

.auth-platforms .auth-icon {
  width: 15px;
  height: 15px;
}

/* ---------- Панель с формой ---------- */

.auth-panel {
  position: relative;
  width: 100%;
  max-width: 468px;
  justify-self: end;
  padding: clamp(22px, 2.4vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: var(--auth-radius);
  background:
    radial-gradient(420px 240px at 100% -4%, rgba(255, 61, 61, 0.14), transparent 70%),
    linear-gradient(165deg, rgba(30, 34, 46, 0.86), rgba(15, 17, 24, 0.92));
  box-shadow:
    var(--auth-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px) saturate(130%);
  animation: authPanelIn 0.72s var(--auth-ease) 0.1s both;
  transition: opacity 0.2s ease;
}

.auth-panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 16%;
  left: 16%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 160, 120, 0.6), transparent);
  opacity: 0.8;
  pointer-events: none;
}

.auth-panel__eyebrow {
  display: block;
  color: var(--auth-orange);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.auth-panel__title {
  margin-top: 10px;
  font-size: clamp(1.32rem, 1.9vw, 1.55rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.auth-panel__sub {
  margin-top: 7px;
  color: var(--auth-muted);
  font-size: 12.8px;
  line-height: 1.5;
}

.auth-panel.is-shake {
  animation: authShake 0.42s var(--auth-ease) both;
}

/* ---------- Форма ---------- */

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.auth-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.auth-label {
  color: var(--auth-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.auth-field:focus-within .auth-label {
  color: var(--auth-orange);
}

.auth-input {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--auth-border);
  border-radius: var(--auth-radius-sm);
  background: rgba(0, 0, 0, 0.3);
  transition: border-color 0.25s var(--auth-ease), background-color 0.25s ease,
    box-shadow 0.25s var(--auth-ease);
}

.auth-input:hover {
  border-color: var(--auth-border-strong);
}

.auth-input__icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--auth-muted-2);
  pointer-events: none;
  transition: color 0.22s ease;
}

.auth-input__field {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 14px 0 43px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: var(--auth-text);
  font-size: 15px;
  outline: none;
  caret-color: var(--auth-orange);
}

.auth-input__field::placeholder {
  color: #59606f;
  opacity: 1;
}

.auth-input:focus-within {
  border-color: rgba(255, 122, 69, 0.68);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 4px rgba(255, 122, 69, 0.12), 0 0 30px rgba(255, 122, 69, 0.08);
}

.auth-input:focus-within .auth-input__icon {
  color: var(--auth-orange);
}

.auth-input:has(.auth-input__action) .auth-input__field,
.auth-input__action + .auth-input__field {
  padding-right: 50px;
}

.auth-input__action {
  position: absolute;
  right: 5px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--auth-muted-2);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s var(--auth-ease);
}

.auth-input__action:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--auth-text);
}

.auth-input__action:active {
  transform: scale(0.94);
}

.auth-input__action .auth-icon {
  width: 17px;
  height: 17px;
}

.auth-input__field:-webkit-autofill,
.auth-input__field:-webkit-autofill:hover,
.auth-input__field:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--auth-text);
  -webkit-box-shadow: 0 0 0 1000px #10131a inset;
  caret-color: var(--auth-text);
  transition: background-color 100000s ease-in-out 0s;
}

/* ошибки полей */

.auth-field.is-invalid .auth-input {
  border-color: rgba(255, 61, 61, 0.62);
  box-shadow: 0 0 0 4px rgba(255, 61, 61, 0.1);
}

.auth-field.is-invalid .auth-input__icon,
.auth-field.is-invalid:focus-within .auth-label {
  color: var(--auth-red);
}

.auth-error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: #ff9a9a;
  font-size: 12px;
  line-height: 1.45;
}

.auth-error:empty {
  display: none;
}

.auth-error::before {
  content: "!";
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  flex: none;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(255, 61, 61, 0.16);
  color: #ff8d8d;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.auth-caps {
  color: var(--auth-yellow);
  font-size: 11.5px;
  line-height: 1.4;
}

/* общее сообщение формы */

.auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 61, 61, 0.36);
  border-radius: 11px;
  background: rgba(255, 61, 61, 0.1);
  color: #ffb1b1;
  font-size: 12.8px;
  line-height: 1.45;
  animation: authRise 0.3s var(--auth-ease) both;
}

.auth-alert .auth-icon {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 1px;
  color: #ff7b7b;
}

.auth-alert--success {
  border-color: rgba(61, 220, 151, 0.34);
  background: rgba(61, 220, 151, 0.09);
  color: #9becc7;
}

.auth-alert--success .auth-icon {
  color: var(--auth-green);
}

.auth-alert--warn {
  border-color: rgba(255, 200, 87, 0.32);
  background: rgba(255, 200, 87, 0.08);
  color: #ffe1a3;
}

.auth-alert--warn .auth-icon {
  color: var(--auth-yellow);
}

/* ---------- Кнопки ---------- */

.auth-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--auth-radius-sm);
  font-size: 14.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--auth-ease), box-shadow 0.3s var(--auth-ease),
    background-position 0.4s var(--auth-ease), border-color 0.2s ease,
    color 0.2s ease, opacity 0.2s ease;
}

.auth-btn--block {
  width: 100%;
}

.auth-btn--primary {
  background: linear-gradient(100deg, #ff3d3d 0%, #ff5c42 48%, #ff7a45 100%);
  background-size: 165% 100%;
  background-position: 0% 50%;
  color: #1b0a06;
  box-shadow:
    0 14px 34px rgba(255, 61, 61, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.auth-btn--primary:hover:not(:disabled) {
  background-position: 100% 50%;
  box-shadow:
    0 18px 44px rgba(255, 95, 69, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  transform: translateY(-1px);
}

.auth-btn--primary:active:not(:disabled) {
  transform: translateY(0) scale(0.995);
  box-shadow:
    0 8px 22px rgba(255, 61, 61, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.auth-btn:disabled,
.auth-btn.is-loading {
  cursor: progress;
  opacity: 0.72;
  transform: none;
}

.auth-btn.is-success {
  background: linear-gradient(100deg, #2fbf85 0%, #3ddc97 100%);
  color: #04261a;
  box-shadow: 0 14px 34px rgba(61, 220, 151, 0.22);
}

.auth-btn.is-success:disabled {
  cursor: default;
  opacity: 1;
}

.auth-btn__label {
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-btn__arrow {
  width: 17px;
  height: 17px;
  transition: transform 0.3s var(--auth-ease);
}

.auth-btn:hover:not(:disabled) .auth-btn__arrow {
  transform: translateX(3px);
}

.auth-btn__spinner {
  display: none;
  width: 16px;
  height: 16px;
  flex: none;
  border: 2px solid rgba(27, 10, 6, 0.25);
  border-top-color: #1b0a06;
  border-radius: 50%;
  animation: authSpin 0.7s linear infinite;
}

.auth-btn.is-loading .auth-btn__spinner {
  display: block;
}

.auth-btn.is-loading .auth-btn__arrow {
  display: none;
}

/* ---------- Тарифы в регистрации ---------- */

.auth-plans {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.auth-plans__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding: 0;
  color: var(--auth-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.auth-plans__legend span {
  color: var(--auth-muted-2);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
}

.auth-plans__grid {
  display: grid;
  gap: 8px;
  margin-top: 9px;
}

.auth-plan {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border: 1px solid var(--auth-border);
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  cursor: pointer;
  transition: transform 0.25s var(--auth-ease), border-color 0.25s ease,
    background-color 0.3s ease, box-shadow 0.3s ease;
}

.auth-plan:hover {
  border-color: var(--auth-border-strong);
  transform: translateY(-1px);
}

.auth-plan.is-selected {
  border-color: rgba(255, 122, 69, 0.6);
  background:
    radial-gradient(240px 90px at 0% 0%, rgba(255, 122, 69, 0.16), transparent 72%),
    linear-gradient(150deg, rgba(255, 122, 69, 0.12), rgba(255, 61, 61, 0.045));
  box-shadow:
    0 10px 28px rgba(255, 61, 61, 0.15),
    inset 0 0 0 1px rgba(255, 122, 69, 0.14);
}

.auth-plan__input {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.auth-plan:has(.auth-plan__input:focus-visible) {
  outline: 2px solid var(--auth-orange);
  outline-offset: 3px;
}

.auth-plan__check {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: none;
  border: 1px solid var(--auth-border-strong);
  border-radius: 50%;
  background: rgba(9, 10, 14, 0.7);
  color: transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.auth-plan__check .auth-icon {
  width: 12px;
  height: 12px;
  stroke-width: 2.6;
}

.auth-plan.is-selected .auth-plan__check {
  border-color: transparent;
  background: linear-gradient(135deg, #ff3d3d 0%, #ff7a45 100%);
  color: #1b0a06;
  box-shadow: 0 4px 14px rgba(255, 61, 61, 0.4);
  animation: authPop 0.32s var(--auth-ease) both;
}

.auth-plan__body {
  min-width: 0;
}

.auth-plan__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.auth-plan__flag {
  padding: 2px 6px;
  border: 1px solid rgba(255, 122, 69, 0.34);
  border-radius: 999px;
  background: rgba(255, 122, 69, 0.1);
  color: #ffb392;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.auth-plan__meta {
  display: block;
  margin-top: 2px;
  color: var(--auth-muted-2);
  font-size: 11px;
  line-height: 1.4;
}

.auth-plan__prices {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  flex: none;
}

.auth-plan__prices b {
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  white-space: nowrap;
}

.auth-plan.is-selected .auth-plan__prices b {
  color: #ffd4ac;
}

.auth-plan__prices span {
  color: var(--auth-muted-2);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- Подвал панели и страницы ---------- */

.auth-panel__foot {
  display: grid;
  gap: 9px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.auth-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: var(--auth-muted);
  font-size: 12.8px;
}

.auth-switch a {
  padding-bottom: 1px;
  border-bottom: 1px solid rgba(255, 122, 69, 0.32);
  color: #ffb088;
  font-weight: 600;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.auth-switch a:hover {
  border-color: rgba(255, 122, 69, 0.72);
  color: #ffd3bf;
}

.auth-fineprint {
  color: var(--auth-muted-2);
  font-size: 11.5px;
  line-height: 1.55;
}

.auth-fineprint a {
  border-bottom: 1px dotted rgba(255, 255, 255, 0.22);
  color: var(--auth-muted);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.auth-fineprint a:hover {
  border-color: rgba(255, 122, 69, 0.6);
  color: var(--auth-text);
}

.auth-footer {
  position: relative;
  z-index: 1;
  padding: 0 clamp(16px, 4vw, 48px) 22px;
}

.auth-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  width: min(1160px, 100%);
  margin-inline: auto;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--auth-muted-2);
  font-size: 11.5px;
}

.auth-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.auth-footer__links a {
  color: var(--auth-muted);
  transition: color 0.2s ease;
}

.auth-footer__links a:hover {
  color: var(--auth-text);
}

.auth-noscript {
  margin-top: 18px;
}

/* ---------- Анимации ---------- */

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

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

@keyframes authFloat {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(4vw, 5vh, 0) scale(1.08);
  }
}

@keyframes authSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes authShake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-7px);
  }
  45% {
    transform: translateX(6px);
  }
  70% {
    transform: translateX(-3px);
  }
}

@keyframes authPop {
  0% {
    transform: scale(0.6);
  }
  60% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}

/* ---------- Адаптив ---------- */

@media (max-width: 1024px) {
  .auth-main {
    align-items: flex-start;
    padding-top: clamp(18px, 3vw, 30px);
  }

  .auth-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    max-width: 560px;
  }

  .auth-intro {
    max-width: none;
  }

  .auth-title {
    font-size: clamp(1.95rem, 5.4vw, 2.6rem);
  }

  .auth-benefits,
  .auth-platforms {
    display: none;
  }

  .auth-panel {
    max-width: none;
    justify-self: stretch;
  }
}

@media (max-width: 680px) {
  .auth-top {
    padding-top: 14px;
  }

  .auth-main {
    padding-bottom: 34px;
  }

  .auth-shell {
    gap: 20px;
  }

  .auth-eyebrow {
    font-size: 9.5px;
    letter-spacing: 0.14em;
  }

  .auth-title {
    margin-top: 16px;
    font-size: clamp(1.8rem, 8vw, 2.15rem);
  }

  .auth-lead {
    margin-top: 12px;
    font-size: 14px;
  }

  .auth-panel {
    padding: 20px 18px 22px;
    border-radius: 18px;
  }

  .auth-panel__title {
    font-size: 1.3rem;
  }

  .auth-form {
    gap: 13px;
    margin-top: 18px;
  }

  .auth-panel__foot {
    margin-top: 17px;
    padding-top: 15px;
  }

  .auth-footer__inner {
    justify-content: flex-start;
    gap: 10px;
  }

  .auth-footer__links {
    gap: 14px;
  }
}

@media (max-width: 400px) {
  .auth-top__link {
    display: none;
  }

  .auth-brand__text b {
    font-size: 12.5px;
  }

  .auth-panel {
    padding: 18px 14px 20px;
  }

  .auth-plan {
    gap: 9px;
    padding: 10px 11px;
  }

  .auth-plan__name {
    font-size: 13px;
  }

  .auth-plan__prices b {
    font-size: 14.5px;
  }

  .auth-btn {
    font-size: 14px;
    padding: 0 16px;
  }
}

/* ---------- Уважение к настройкам анимации ---------- */

@media (prefers-reduced-motion: reduce) {
  body.auth-body *,
  body.auth-body *::before,
  body.auth-body *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .auth-bg__glow {
    animation: none !important;
  }

  .auth-benefits li:hover,
  .auth-top__cta:hover,
  .auth-btn:hover:not(:disabled),
  .auth-plan:hover {
    transform: none !important;
  }
}
