/* One — auth pages */
.auth-page {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  padding: 32px clamp(20px, 4vw, 48px) 64px;
  background: var(--bg);
}
.auth-shell {
  width: 100%;
  max-width: 980px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 28px;
  align-items: stretch;
}
.auth-aside {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 34px;
}
.auth-aside h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 400;
  margin-bottom: 12px;
}
.auth-aside p {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 360px;
  font-weight: 300;
}
.auth-points {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}
.auth-points li {
  list-style: none;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--text);
}
.auth-points .ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--panel2);
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--muted);
}
.auth-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 30px;
}
.auth-card h1 {
  font-family: var(--serif);
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  font-weight: 400;
  margin-bottom: 6px;
}
.auth-card .sub {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 22px;
  font-weight: 300;
}
.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  padding: 4px;
  background: var(--panel2);
  border-radius: 12px;
}
.auth-tabs button {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 9px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.auth-tabs button.active {
  background: var(--panel);
  color: var(--text);
}
.auth-field { margin-bottom: 14px; }
.auth-field label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.auth-input-wrap { position: relative; }
.auth-input-wrap input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel2);
  color: var(--text);
  outline: none;
}
.auth-input-wrap input:focus { border-color: var(--text); }
.auth-input-wrap .toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.82rem;
  padding: 4px 6px;
}
.auth-strength {
  height: 6px;
  border-radius: 999px;
  background: var(--panel2);
  margin-top: 8px;
  overflow: hidden;
}
.auth-strength span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition: width 0.25s, background 0.25s;
}
.auth-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 6px;
  min-height: 16px;
}
.auth-msg {
  font-size: 0.85rem;
  margin-top: 14px;
  min-height: 18px;
  text-align: center;
}
.auth-msg.err { color: var(--danger); }
.auth-msg.ok { color: var(--ok); }
.auth-card .btn { width: 100%; margin-top: 8px; }
.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  font-size: 0.85rem;
}
.auth-links a { color: var(--muted); }
.auth-links a:hover { color: var(--text); }
.auth-foot {
  text-align: center;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}
.auth-panel { display: none; }
.auth-panel.active { display: block; }
.auth-success { text-align: center; padding: 12px 0; }
.auth-success .big { font-size: 48px; line-height: 1; margin-bottom: 12px; }
@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
}
