/* auth.css — общий каркас страниц входа/регистрации/восстановления.
   Центрированная «аркадная консоль» с японским акцентом сбоку. */

.auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
}

/* левая «витрина» — крупный бренд, кана, эффект CRT */
.auth-aside {
  position: relative; overflow: hidden;
  padding: 48px 54px;
  display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(700px 500px at 20% 10%, rgba(255,46,136,.14), transparent 60%),
    radial-gradient(700px 600px at 90% 100%, rgba(46,255,245,.10), transparent 60%),
    linear-gradient(160deg, #100f22, #08080f);
  border-right: 1px solid var(--line);
}
.auth-aside .big-kana {
  position: absolute; right: -30px; bottom: -60px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 360px; line-height: 1; color: rgba(255,255,255,.02);
  pointer-events: none; user-select: none;
}
.auth-aside .a-brand { display: inline-flex; align-items: center; gap: 13px; position: relative; z-index: 2; text-decoration: none; }
.auth-aside .a-brand .kuromi-mark { width: 46px; height: 46px; }
.auth-aside .a-brand .kuromi-logo { --km-size: 22px; }
.auth-aside .a-copy { position: relative; z-index: 2; max-width: 420px; }
.auth-aside .a-copy h2 {
  font-size: clamp(30px, 3.6vw, 46px); line-height: 1.05; letter-spacing: -1.5px; margin-bottom: 18px;
}
.auth-aside .a-copy h2 .grad {
  background: linear-gradient(110deg, var(--mag-2), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.auth-aside .a-copy p { color: var(--ink-dim); font-size: 16px; line-height: 1.65; }
.auth-aside .a-points { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 14px; }
.auth-aside .a-point { display: flex; align-items: center; gap: 12px; color: var(--ink-dim); font-size: 14.5px; }
.auth-aside .a-point .pdot {
  width: 26px; height: 26px; flex: none; border-radius: 8px; display: grid; place-items: center;
  background: rgba(46,255,245,.08); border: 1px solid rgba(46,255,245,.25); color: var(--cyan);
  font-family: var(--font-mono); font-size: 13px;
}

/* правая колонка — форма */
.auth-main {
  display: flex; align-items: center; justify-content: center; padding: 40px 24px;
}
.auth-card { width: 100%; max-width: 430px; }
.auth-card .a-head { margin-bottom: 26px; }
.auth-card .a-head .eyebrow { margin-bottom: 14px; }
.auth-card .a-head h1 { font-size: 30px; letter-spacing: -.5px; margin-bottom: 8px; }
.auth-card .a-head p { color: var(--ink-mute); font-size: 14.5px; line-height: 1.5; }
.auth-card .a-foot { margin-top: 22px; text-align: center; color: var(--ink-mute); font-size: 14px; }
.auth-card .a-foot a { color: var(--cyan); font-weight: 600; }
.auth-card .a-altrow { display: flex; justify-content: space-between; align-items: center; margin: -4px 0 18px; }
.auth-card .a-altrow a { color: var(--ink-mute); font-size: 13px; }
.auth-card .a-altrow a:hover { color: var(--cyan); }

/* индикатор силы пароля */
.pw-strength { display: flex; gap: 5px; margin-top: 8px; }
.pw-strength i { flex: 1; height: 4px; border-radius: 2px; background: var(--panel-3); transition: background .25s; }
.pw-strength.s1 i:nth-child(1) { background: var(--red); }
.pw-strength.s2 i:nth-child(-n+2) { background: var(--amber); }
.pw-strength.s3 i:nth-child(-n+3) { background: var(--cyan); }
.pw-strength.s4 i { background: var(--lime); }

/* мульти-шаговый прогресс (восстановление) */
.steps { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; }
.steps .st {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-ghost);
}
.steps .st .n {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-2); font-size: 12px;
}
.steps .st.active { color: var(--cyan); }
.steps .st.active .n { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 12px -2px var(--gl-cyan); }
.steps .st.done .n { background: var(--lime); border-color: transparent; color: #07070c; }
.steps .line { flex: 1; height: 1px; background: var(--line); }

@media (max-width: 860px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
}
