:root {
  --main-font: "Nata Sans", sans-serif;
  --site-gradient: radial-gradient(
      1200px 900px at 15% 10%,
      rgba(255, 255, 255, 0.08),
      transparent 60%
    ),
    radial-gradient(
      900px 700px at 85% 25%,
      rgba(255, 255, 255, 0.07),
      transparent 55%
    ),
    radial-gradient(
      900px 700px at 50% 90%,
      rgba(255, 255, 255, 0.05),
      transparent 60%
    ),
    linear-gradient(90deg, #000000, #230b10, #250a0f, #230b10, #000000);
  --glass-bg: rgba(93, 93, 93, 0.18);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-strong: rgba(255, 255, 255, 0.16);
  --text: rgba(255, 255, 255, 0.92);
  --text-dim: rgba(255, 255, 255, 0.72);
  --danger: rgba(255, 90, 90, 0.95);
  --ok: rgba(120, 255, 180, 0.95);
}
* {
  box-sizing: border-box;
}
body {
  font-family: var(--main-font);
  min-height: 100vh;
  background-image: var(--site-gradient);
  margin: 0;
  color: var(--text);
  overflow-x: hidden;
}
.account-btn:active {
  transform: scale(0.92);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35) inset;
}
.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 110px 18px 40px;
}
.auth-wrap {
  width: min(560px, 100%);
  display: block;
}
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
}
.card {
  padding: 22px;
  border: 1px solid var(--glass-border-strong);
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.card-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.card-title h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.2px;
}
.card-title .sub {
  margin: 0;
  font-size: 13px;
  color: var(--text-dim);
}
.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.14);

  /* добавь */
  aspect-ratio: 1 / 1;
  flex: 0 0 44px; /* чтобы flex не тянул */
  padding: 0; /* на всякий случай */
}
form {
  display: grid;
  gap: 12px;
}
.field {
  display: grid;
  gap: 8px;
}
.label {
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.25px;
}
.control {
  position: relative;
}
.control > i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  pointer-events: none;
}
.input {
  width: 100%;
  padding: 12px 12px 12px 38px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  outline: none;
  font-size: 14px;
  transition: 0.2s ease;
}
.input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}
.input:focus {
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 13px;
  user-select: none;
  cursor: pointer;
}
.check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.check-ui {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.18);
  position: relative;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
  transition: 0.2s ease;
  flex: 0 0 auto;
}
.check-ui::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 3px;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: 0.2s ease;
}
.check input:focus-visible + .check-ui {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
}
.check input:checked + .check-ui {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}
.check input:checked + .check-ui::after {
  left: 23px;
  background: rgba(170, 255, 220, 0.95);
}
.check-text {
  color: var(--text-dim);
}
.link {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 13px;
  transition: 0.2s ease;
}
.link:hover {
  opacity: 0.85;
}
.btn {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-weight: 650;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: 0.18s ease;
}
.btn:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0px) scale(0.985);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) inset;
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.msg {
  min-height: 18px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-dim);
}
.msg.err {
  color: var(--danger);
}
.msg.ok {
  color: var(--ok);
}
.glow {
  position: fixed;
  inset: auto -40vw -45vh -40vw;
  height: 70vh;
  background: radial-gradient(
    closest-side,
    rgba(255, 255, 255, 0.06),
    transparent 70%
  );
  pointer-events: none;
  filter: blur(2px);
  opacity: 0.85;
  z-index: 0;
}
.auth-wrap,
.navbar {
  position: relative;
  z-index: 2;
}
.panel-stack {
  position: relative;
  width: 100%;
  transition: height 220ms ease;
  will-change: height;
}
.panel {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(-8px);
  filter: blur(0.5px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 240ms ease, filter 240ms ease;
}
.panel.is-active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  pointer-events: auto;
}
.panel.is-exit {
  opacity: 0;
  transform: translateY(10px);
  filter: blur(1px);
  pointer-events: none;
}
.mini-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.12);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  text-decoration: none;
  transition: 0.18s ease;
  cursor: pointer;
  user-select: none;
}
.pill:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.pill:active {
  transform: translateY(0) scale(0.99);
}
.step {
  display: none;
  animation: stepIn 220ms ease;
}
.step.is-active {
  display: grid;
  gap: 12px;
}
@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .panel-stack {
    transition: none;
  }
  .panel {
    transition: none;
  }
  .step {
    animation: none;
  }
}
.pass-eye {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.14);
  color: rgba(255, 255, 255, 0.78);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: 0.18s ease;
}
.pass-eye:hover {
  opacity: 0.92;
  transform: translateY(-50%) translateY(-1px);
}
.pass-eye:active {
  transform: translateY(-50%) scale(0.98);
}
/* .control .input {
  padding-right: 52px;
} */
.control.has-eye {
  position: relative;     /* оставляем для левого замка */
  display: flex;
  align-items: center;
  gap: 10px;              /* ✅ расстояние между инпутом и глазом */
}

.control.has-eye .input {
  flex: 1;
  padding-right: 12px;    /* глаз теперь снаружи — большой padding не нужен */
}

.control.has-eye .pass-eye {
  position: static;       /* ✅ больше не absolute */
  transform: none;
  flex: 0 0 auto;
}
.pass-eye i {
  position: static;
  transform: none;
}