/* =====================================================================
   Вход и регистрация alnur — форма + оливковая бренд-панель.
   ===================================================================== */

.page-auth main.shell { width: calc(100% - 2 * var(--gutter)); max-width: 1360px; padding: 0; }
.page-auth .site-footer { margin-top: 0; }

.ax {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  min-height: calc(100vh - 120px);
  padding: 20px 0 clamp(40px, 6vw, 80px);
}

/* --- form side --- */
.ax-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(24px, 4vw, 64px) clamp(8px, 3vw, 48px);
}

.ax-card { width: 100%; max-width: 420px; }
.ax-card-wide { max-width: 520px; }

.ax-tag {
  display: inline-flex;
  padding: 6px 12px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--forest);
  font-size: 13px;
  font-weight: 600;
}

.ax-card h1 { margin: 0 0 10px; font-size: clamp(36px, 3.6vw, 52px); letter-spacing: -0.04em; }
.ax-lede { margin: 0 0 32px; color: var(--muted); font-size: 16px; line-height: 1.55; max-width: 42ch; }

.ax-form { display: grid; gap: 18px; }
.ax-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.ax-field { display: grid; gap: 8px; min-width: 0; }
.ax-field label { font-size: 14px; font-weight: 600; color: var(--ink); }

.ax-control { position: relative; }

.ax-control input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  transition: border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out), background-color 200ms var(--ease-out);
}

.ax-control input::placeholder { color: #9aa394; }

@media (hover: hover) {
  .ax-control input:hover { border-color: #cdd6c7; }
}

.ax-control input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(111, 143, 95, 0.18);
}

.is-password .ax-control input { padding-right: 52px; }

.ax-eye {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--muted);
  transform: translateY(-50%);
  transition: color 180ms var(--ease-out), background-color 180ms var(--ease-out);
}

.ax-eye svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ax-eye.is-on { color: var(--green); background: var(--mint-soft); }

@media (hover: hover) {
  .ax-eye:hover { color: var(--ink); background: var(--mint-soft); }
}

.has-error .ax-control input { border-color: var(--danger); background: #fdf6f5; }
.ax-error { margin: 0; color: var(--danger); font-size: 13.5px; }
.ax-hint { margin: 0; color: var(--muted); font-size: 13px; }

.ax-strength { display: flex; align-items: center; gap: 12px; margin-top: -6px; }
.ax-strength[hidden] { display: none; }
.ax-strength-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; flex: 1; }
.ax-strength-bar i { height: 4px; border-radius: 4px; background: var(--line); transition: background-color 200ms var(--ease-out); }
.ax-strength-label { font-size: 13px; font-weight: 600; min-width: 108px; text-align: right; }

.ax-strength[data-level="1"] i:nth-child(-n + 1) { background: var(--danger); }
.ax-strength[data-level="2"] i:nth-child(-n + 2) { background: var(--amber); }
.ax-strength[data-level="3"] i:nth-child(-n + 3) { background: var(--leaf); }
.ax-strength[data-level="4"] i { background: var(--green); }
.ax-strength[data-level="1"] .ax-strength-label { color: var(--danger); }
.ax-strength[data-level="2"] .ax-strength-label { color: #9a6a1f; }
.ax-strength[data-level="3"] .ax-strength-label,
.ax-strength[data-level="4"] .ax-strength-label { color: var(--green); }

.ax-submit { width: 100%; min-height: 56px; margin-top: 6px; font-size: 16px !important; }

.ax-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0 16px;
  color: var(--muted);
  font-size: 14px;
}

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

.ax-forgot {
  justify-self: end;
  margin-top: -6px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.ax-forgot:hover { color: var(--green); }

.ax-alt {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 200ms var(--ease-out), background-color 200ms var(--ease-out);
}

@media (hover: hover) {
  .ax-alt:hover { border-color: var(--green); background: var(--mint-soft); }
}

.ax-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 14.5px;
}

.ax-notice p { margin: 0; }
.ax-notice strong { display: block; margin-bottom: 2px; }
.ax-notice svg { flex: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ax-notice.is-success { background: var(--mint); color: var(--forest); }
.ax-notice.is-error { background: #fbeceb; color: #8f2a23; }
.ax-form > .ax-notice { margin-bottom: 0; }

/* --- brand panel --- */
.ax-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(32px, 4vw, 56px);
  border-radius: var(--radius-lg);
  background: var(--green);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

/* мягкое пятно света вместо фото */
.ax-panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -20%;
  bottom: -30%;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(169, 196, 143, 0.38), rgba(169, 196, 143, 0) 70%);
}

.ax-panel-tag {
  display: inline-flex;
  padding: 6px 12px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #dfe8d6;
  font-size: 13px;
  font-weight: 600;
}

.ax-panel-title {
  max-width: 14ch;
  margin: 0 0 28px;
  font-size: clamp(32px, 3.2vw, 48px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.ax-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; max-width: 420px; }
.ax-perks li { display: flex; align-items: flex-start; gap: 14px; font-size: 14.5px; color: rgba(255, 255, 255, 0.78); }
.ax-perks strong { display: block; color: var(--white); font-size: 15.5px; font-weight: 600; margin-bottom: 1px; }

.ax-perks svg {
  flex: none;
  width: 40px;
  height: 40px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  fill: none;
  stroke: #dfe8d6;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* веер из трёх реальных товаров */
.ax-stack {
  position: relative;
  height: 240px;
  margin: 0 auto;
  width: min(100%, 460px);
}

.ax-stack-card {
  position: absolute;
  top: 0;
  width: 168px;
  padding: 10px 10px 14px;
  border-radius: 20px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 18px 40px rgba(20, 32, 17, 0.28);
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: transform 500ms var(--ease-out);
}

.ax-stack-1 { left: 0; transform: rotate(-8deg) translateY(28px); }
.ax-stack-2 { left: 50%; margin-left: -84px; z-index: 2; transform: translateY(0); }
.ax-stack-3 { right: 0; transform: rotate(8deg) translateY(28px); }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .ax-panel:hover .ax-stack-1 { transform: rotate(-11deg) translate(-10px, 22px); }
  .ax-panel:hover .ax-stack-3 { transform: rotate(11deg) translate(10px, 22px); }
  .ax-panel:hover .ax-stack-2 { transform: translateY(-8px); }
}

.ax-stack-media {
  aspect-ratio: 1;
  margin-bottom: 6px;
  border-radius: 14px;
  background: var(--mint-soft);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.ax-stack-media img { width: 78%; height: 78%; object-fit: contain; mix-blend-mode: multiply; }
.ax-stack-brand { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--green); }
.ax-stack-name { font-size: 12.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ax-stack-price { font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; }

.ax-panel-foot {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

.ax-panel-foot strong { color: var(--white); font-variant-numeric: tabular-nums; }

/* --- responsive --- */
@media (max-width: 1100px) {
  .ax-stack { display: none; }
}

@media (max-width: 960px) {
  .ax { grid-template-columns: 1fr; min-height: 0; padding-top: 8px; gap: 12px; }
  .ax-main { padding: 20px 4px 8px; }
  .ax-card,
  .ax-card-wide { max-width: none; }
  .ax-panel { border-radius: 24px; padding: 28px 24px; gap: 20px; }
  .ax-panel-title { font-size: 28px; margin-bottom: 20px; }
  .ax-perks { gap: 12px; }
}

@media (max-width: 520px) {
  .ax-row { grid-template-columns: 1fr; gap: 18px; }
}

.ax .ax-control input:not([type="checkbox"]) {
  height: 54px;
  padding: 0 16px;
  border: 1.5px solid #8ea384;
  border-radius: 16px;
  background: var(--mint);
  box-shadow: none;
  font-size: 16px;
}
.ax .is-password .ax-control input { padding-right: 52px; }
.ax .ax-control input:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(111, 143, 95, 0.18); }
.ax .has-error .ax-control input { border-color: var(--danger); background: #fdf6f5; }

/* Поля в ряду не растягиваются друг под друга. */
.ax-row { align-items: start; }
.ax-field { align-content: start; }
.ax-row-hint { margin: -8px 0 0; color: var(--muted); font-size: 13px; }
