/* fxck.cc — login/register/account/profile (прод-стиль: тёмный, mono, красный) */
.auth-main {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(2rem, 6vh, 4rem) clamp(1rem, 4vw, 2rem) 4rem;
}
.auth-head { text-align: center; margin-bottom: 1.6rem; }
.auth-head h1 {
  font-family: var(--mono);
  font-size: clamp(1.9rem, 6vw, 3.2rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.4rem;
}
.auth-head p { color: var(--muted); margin: 0; font-size: 0.95rem; }

.auth-card {
  max-width: 520px;
  margin: 0 auto;
  padding: clamp(1.3rem, 4vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-solid);
  box-shadow: 0 24px 70px -40px rgba(0, 0, 0, 0.95);
}
.auth-card.wide { max-width: 100%; }

.auth-form { display: grid; gap: 0.9rem; }
.afield { display: grid; gap: 0.35rem; }
.afield > span { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.afield input, .afield select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0a0a12;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.92rem;
  outline: none;
}
.afield input:focus, .afield select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 45, 45, 0.14); }
.afield .hint { color: var(--faint); font-size: 0.75rem; font-family: var(--sans); }
.auth-row { display: flex; gap: 0.7rem; align-items: center; flex-wrap: wrap; }
.auth-row .btn { flex: 1 1 auto; justify-content: center; }
.auth-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 0.4rem; }

.auth-msg {
  margin: 0.9rem 0 0;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}
.auth-msg.ok { color: #9ef0b2; border-color: rgba(80, 220, 120, 0.35); background: rgba(80, 220, 120, 0.07); }
.auth-msg.err { color: var(--accent2); border-color: rgba(255, 45, 45, 0.4); background: rgba(255, 45, 45, 0.07); }

.auth-alt { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--border); display: flex; gap: 1rem; flex-wrap: wrap; justify-content: space-between; font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.auth-alt a { color: var(--accent2); }
.auth-alt a:hover { color: #fff; }

.auth-captcha { display: flex; gap: 0.7rem; align-items: center; }
.auth-captcha img { height: 46px; border-radius: 8px; border: 1px solid var(--border); background: #05050a; }
.auth-captcha .cap-refresh { flex: 0 0 auto; }
.auth-captcha input { flex: 1 1 auto; min-width: 0; }

.twitch-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(145, 70, 255, 0.55);
  background: rgba(145, 70, 255, 0.12);
  color: #d9c7ff;
  font-family: var(--mono);
  font-size: 0.85rem;
}
.twitch-btn:hover { background: rgba(145, 70, 255, 0.2); color: #fff; }

/* ---------- account ---------- */
.acct-top {
  display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap;
  padding-bottom: 1.2rem; margin-bottom: 1.2rem; border-bottom: 1px solid var(--border);
}
.acct-avatar {
  width: 72px; height: 72px; border-radius: 18px; overflow: hidden; flex: 0 0 auto;
  border: 1px solid var(--border-strong); background: #0a0a12;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 1.8rem; color: var(--accent);
}
.acct-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acct-id { min-width: 0; }
.acct-id h2 { margin: 0; font-family: var(--mono); font-size: 1.4rem; letter-spacing: -0.02em; }
.acct-id p { margin: 0.15rem 0 0; color: var(--muted); font-family: var(--mono); font-size: 0.78rem; overflow-wrap: anywhere; }
.acct-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.acct-block { border: 1px solid var(--border); border-radius: 14px; padding: 1rem; background: rgba(255, 255, 255, 0.015); }
.acct-block h3 { font-family: var(--mono); font-size: 0.9rem; margin: 0 0 0.7rem; color: var(--text); }
.acct-block.full { grid-column: 1 / -1; }
.acct-block.danger { border-color: rgba(255, 45, 45, 0.35); }
.acct-block.danger h3 { color: var(--accent2); }
.acct-note { color: var(--faint); font-size: 0.78rem; margin: 0.5rem 0 0; }
.acct-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.1rem 0.5rem; border-radius: 999px; border: 1px solid var(--border);
  font-family: var(--mono); font-size: 0.68rem; color: var(--muted); text-transform: lowercase;
}
.acct-badge.tw { border-color: rgba(145, 70, 255, 0.45); color: #cbb2ff; }
.acct-badge.owner { border-color: rgba(255, 45, 45, 0.5); color: var(--accent2); }

.acct-list { display: grid; gap: 0.6rem; }
.acct-item { border: 1px solid var(--border); border-radius: 12px; padding: 0.7rem 0.8rem; background: #0a0a12; }
.acct-item-head { display: flex; justify-content: space-between; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.acct-item-head strong { font-family: var(--mono); font-size: 0.85rem; }
.acct-item-meta { color: var(--muted); font-size: 0.78rem; margin: 0.25rem 0 0; overflow-wrap: anywhere; }
.acct-item-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.5rem; font-family: var(--mono); font-size: 0.76rem; }
.acct-item-actions a, .acct-item-actions button { color: var(--accent2); background: none; border: 0; padding: 0; cursor: pointer; font: inherit; }
.acct-item-actions a:hover, .acct-item-actions button:hover { color: #fff; }
.acct-preset-form { margin-top: 0.7rem; padding-top: 0.7rem; border-top: 1px dashed var(--border); display: grid; gap: 0.6rem; }
.acct-preset-form[hidden] { display: none; }
.acct-preset-form h4 { margin: 0; font-family: var(--mono); font-size: 0.74rem; color: var(--faint); text-transform: lowercase; letter-spacing: 0.04em; }
.acct-preset-grid { display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.acct-preset-field { display: grid; gap: 0.2rem; font-family: var(--mono); font-size: 0.7rem; color: var(--muted); }
.acct-preset-field input, .acct-preset-field select { width: 100%; min-width: 0; padding: 0.42rem 0.5rem; border-radius: 8px; border: 1px solid var(--border); background: #0a0a12; color: var(--text); font-family: var(--mono); font-size: 0.78rem; }
.acct-preset-field input:focus, .acct-preset-field select:focus { outline: none; border-color: var(--border-strong); }
.acct-preset-toggles { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.acct-preset-toggle { display: inline-flex; align-items: center; gap: 0.35rem; font-family: var(--mono); font-size: 0.72rem; color: var(--muted); cursor: pointer; }
.acct-preset-toggle input { accent-color: var(--accent); width: 14px; height: 14px; cursor: pointer; }
.acct-preset-form-actions { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.acct-preset-form .auth-msg { margin: 0; }
.acct-comments { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.acct-comments li { border-left: 2px solid var(--border-strong); padding-left: 0.7rem; color: var(--muted); font-size: 0.85rem; }
.acct-comments time { display: block; color: var(--faint); font-family: var(--mono); font-size: 0.7rem; margin-top: 0.15rem; }
.acct-imgs { display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
.acct-imgs a { display: block; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: #0a0a12; }
.acct-imgs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.collab-panel { margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1px dashed var(--border); display: grid; gap: 0.5rem; }
.collab-panel[hidden] { display: none; }
.collab-row { display: flex; justify-content: space-between; gap: 0.5rem; align-items: center; font-family: var(--mono); font-size: 0.76rem; color: var(--muted); }
.collab-form { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.collab-form input, .collab-form select { flex: 1 1 120px; min-width: 0; padding: 0.45rem 0.55rem; border-radius: 8px; border: 1px solid var(--border); background: #0a0a12; color: var(--text); font-family: var(--mono); font-size: 0.78rem; }
.collab-form button { flex: 0 0 auto; }
.setpw-banner { border-color: rgba(255, 45, 45, 0.45); background: rgba(255, 45, 45, 0.06); }

/* ---------- public profile ---------- */
.profile-wrap { max-width: 820px; margin: 0 auto; }
.profile-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel-solid); padding: clamp(1.2rem, 4vw, 2rem); box-shadow: 0 24px 70px -45px #000; }
.profile-top { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.profile-avatar { width: 88px; height: 88px; border-radius: 22px; overflow: hidden; border: 1px solid var(--border-strong); background: #0a0a12; display: grid; place-items: center; font-family: var(--mono); font-size: 2rem; color: var(--accent); }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-top h1 { margin: 0; font-family: var(--mono); font-size: clamp(1.5rem, 5vw, 2.3rem); letter-spacing: -0.03em; }
.profile-top p { margin: 0.2rem 0 0; color: var(--muted); font-family: var(--mono); font-size: 0.78rem; }
.profile-comments { margin: 1rem 0 0; }
.profile-comments h2 { font-family: var(--mono); font-size: 0.95rem; color: var(--muted); }
.profile-comment { border-top: 1px solid var(--border); padding: 0.7rem 0; }
.profile-comment p { margin: 0; color: var(--text); font-size: 0.9rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.profile-comment a { font-family: var(--mono); font-size: 0.72rem; color: var(--accent2); }
.profile-comment time { display: block; color: var(--faint); font-family: var(--mono); font-size: 0.7rem; margin-top: 0.2rem; }
.profile-empty { color: var(--faint); font-family: var(--mono); font-size: 0.82rem; }

@media (max-width: 560px) {
  .auth-card { border-radius: 12px; }
  .auth-row { flex-direction: column; align-items: stretch; }
  .acct-top { gap: 0.8rem; }
}
