/* ── Авторизация ───────────────────────────────────────── */

.auth-body { min-height: 100vh; }

.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0 var(--pad);
}

.auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
}

.auth {
  flex: 1;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 470px);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  padding: clamp(24px, 5vh, 60px) 0 40px;
}

.auth-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: 40rem;
}
.section__kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-300);
  background: var(--pill);
  padding: 5px 12px;
  border-radius: 999px;
}
.auth-aside h1 {
  font-size: clamp(30px, 3.8vw, 52px);
  line-height: 1.08;
  letter-spacing: -.025em;
}
.auth-aside__text {
  color: var(--t50);
  font-size: 15px;
  line-height: 1.8;
  max-width: 33rem;
}

.auth-points { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.auth-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--t75);
}
.auth-points__icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 8px;
  background: var(--pill);
  color: var(--green-300);
  box-shadow: 0 0 0 1px rgba(134, 239, 172, .12);
}
.auth-points__icon .icon { width: 13px; height: 13px; }

.auth-quote {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .025);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .05);
  max-width: 34rem;
}
.auth-quote__faces { display: flex; }
.auth-quote__faces .avatar { margin-left: -7px; box-shadow: 0 0 0 2px #0a0a0a; }
.auth-quote__faces .avatar:first-child { margin-left: 0; }
.auth-quote p { font-size: 12.5px; color: var(--t50); line-height: 1.7; }

.auth-mini-board {
  position: relative;
  width: min(100%, 420px);
  height: 140px;
  margin-top: 20px;
  border-radius: 18px;
  background-color: rgba(255, 255, 255, .02);
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .13) 1px, transparent 1.5px);
  background-size: 20px 20px;
  box-shadow: 0 0 0 1px var(--ring);
  overflow: hidden;
}
.auth-mini-board .mini-note {
  position: absolute;
  width: 76px;
  height: 76px;
  font-size: 10px;
  transform: rotate(var(--r));
}
.auth-mini-board .mini-note:nth-child(1) { left: 28px; top: 28px; }
.auth-mini-board .mini-note:nth-child(2) { left: 138px; top: 18px; }
.auth-mini-board .mini-note:nth-child(3) { left: 248px; top: 34px; }
.mini-cursor {
  position: absolute;
  left: 60%;
  top: 62%;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--c);
  color: #06200f;
  font-size: 9px;
  font-weight: 800;
  animation: mini-cursor 8s ease-in-out infinite;
}
.mini-cursor::before {
  content: "";
  position: absolute;
  left: -7px;
  top: -8px;
  width: 12px;
  height: 12px;
  background: var(--c);
  clip-path: polygon(0 0, 100% 60%, 55% 68%, 30% 100%);
}
@keyframes mini-cursor {
  0%, 100% { transform: translate(0, 0); }
  40% { transform: translate(-50px, -28px); }
  70% { transform: translate(20px, -40px); }
}

.auth-card {
  width: 100%;
  padding: clamp(24px, 3vw, 38px);
  background: #0b0e0b;
  box-shadow: 0 0 0 1px var(--ring), 0 40px 90px -50px #000;
}
.auth-card__head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.auth-card__head h2 { font-size: clamp(22px, 2.5vw, 28px); }
.auth-card__head p { font-size: 13px; color: var(--t50); }
.auth-card__head a { color: var(--green-300); }
.auth-card__head a:hover { text-decoration: underline; }

.auth-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 18px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.5;
}
.auth-notice .icon { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.auth-notice span { display: flex; flex-direction: column; gap: 2px; }
.auth-notice b { font-size: 12.5px; }
.auth-notice small { font-size: 11px; opacity: .78; }
.auth-notice--danger { background: rgba(248, 113, 113, .1); color: #fca5a5; box-shadow: 0 0 0 1px rgba(248, 113, 113, .22); }
.auth-notice--warn { background: rgba(251, 191, 36, .09); color: #fcd34d; box-shadow: 0 0 0 1px rgba(251, 191, 36, .2); }

.auth-bridge-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
}
.auth-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 36px 42px;
  text-align: center;
}
.auth-bridge__logo { margin-bottom: 6px; }
.auth-bridge__spinner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .08);
  border-top-color: var(--green-300);
  animation: authBridgeSpin .8s linear infinite;
}
.auth-bridge b { font-family: var(--display); font-size: 16px; font-weight: 600; }
.auth-bridge p { font-size: 12px; color: var(--t40); }
.auth-bridge a { color: var(--green-300); }
.auth-bridge a:hover { text-decoration: underline; }
@keyframes authBridgeSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .auth-bridge__spinner { animation-duration: 2s; }
}

.password-wrap { position: relative; }
.password-wrap input { padding-right: 46px; }
.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  color: var(--t40);
  transition: var(--smooth);
}
.password-toggle:hover { background: var(--w5); color: #fff; }
.password-toggle .icon { width: 16px; height: 16px; }

.auth-card .btn--wide { margin-top: 4px; padding-block: 14px; }
.auth-switch {
  margin-top: 22px;
  text-align: center;
  font-size: 13px;
  color: var(--t50);
}
.auth-switch a { color: var(--green-300); font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }
.auth-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  font-size: 11px;
  color: var(--t40);
  text-align: center;
}
.auth-secure .icon { width: 13px; height: 13px; }

.auth-foot {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 24px;
  font-size: 11.5px;
  color: var(--t40);
}
.auth-foot a:hover { color: var(--green-200); }

@media (max-width: 980px) {
  .auth { grid-template-columns: 1fr; max-width: 540px; gap: 28px; }
  .auth-aside { display: none; }
  .auth-card { margin: 0 auto; }
  .auth-top, .auth-foot { max-width: 540px; }
}

@media (max-width: 560px) {
  .auth { padding-top: 12px; }
  .auth-card { padding: 22px 18px; border-radius: 20px; }
  .auth-top { padding: 12px 0; }
  .auth-top .pill span { display: none; }
}
