/* HAVOC9 accounts: the sign-in, sign-up and account pages, and the web client's sign-in gate.
   Built on styles.css's palette and type; only what those pages add is here. */

.account-page [hidden] {
  display: none !important;
}

.account-box {
  max-width: 480px;
  margin: 0 auto;
  padding: 2rem 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.account-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.account-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--orange);
  margin-bottom: 0.4rem;
}

.account-field input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 0;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.account-field input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 12px var(--orange-glow);
}

.account-hint {
  margin-top: 0.4rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* the never-reuse-a-password warning beside a password field */
.account-warn {
  margin-top: 0.5rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--orange);
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text-dim);
}

.account-warn strong {
  color: var(--orange);
  font-weight: 600;
}

.account-error {
  min-height: 1.3em;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: #e0603f;
}

.account-done {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #2ecc71;
}

.account-form .btn {
  width: 100%;
  text-align: center;
}

.account-form .btn[disabled] {
  opacity: 0.55;
  cursor: wait;
}

.account-alt {
  margin-top: 1.4rem;
  text-align: center;
  font-size: 0.98rem;
  color: var(--text-muted);
}

.account-alt a,
.account-section a {
  color: var(--orange);
}

.account-section {
  max-width: 640px;
  margin: 3rem auto 0;
}

.account-section p,
.account-section li {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.6;
}

.account-section p + p {
  margin-top: 0.75rem;
}

.account-section ul {
  margin: 0.75rem 0 1rem;
  padding-left: 1.25rem;
}

.account-section code,
.account-ids code {
  background: rgba(0, 0, 0, 0.35);
  padding: 0.1em 0.35em;
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--orange);
  word-break: break-all;
}

.account-small {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
}

.account-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.75rem;
}

.account-ids {
  max-width: 640px;
  margin: 0 auto;
  border: 1px solid var(--border);
}

.account-ids .feature-value {
  min-width: 0;
}

.account-notice {
  margin-bottom: 2rem;
}

/* SHOW and COPY in the PLAYER ID row, and the muted line under it */
.account-mini {
  margin-left: 0.4rem;
  padding: 0.15rem 0.5rem;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  cursor: pointer;
}

.account-mini:hover,
.account-mini:focus-visible {
  color: var(--orange);
  border-color: var(--orange);
}

.account-rownote {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--text-muted);
}

#fPlayerId {
  word-break: break-all;
}

/* in game and online, and the privacy switches (presence.js draws into them) */
.account-presence {
  margin-top: 1.25rem;
}

/* the profile picture and username change sections */
.account-pic {
  display: block;
  width: 128px;
  height: 128px;
  margin: 0 auto 0.75rem;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--bg);
}

.account-note {
  margin: 1rem 0;
  padding: 0.6rem 0.9rem;
  border-left: 2px solid var(--orange);
  background: rgba(255, 77, 0, 0.06);
  color: var(--text-dim);
}

/* the forum signature: its text, its preview (muted, as under a post), SHOW SIGNATURES */
.account-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: 0;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  resize: vertical;
}

.account-field textarea:focus {
  outline: none;
  border-color: var(--orange);
}

/* the preview is the forum's own signature box (forum/forum.css .forum-signature, drawn by
   forum/forum.js); this only holds it, and the "No signature." line */
.account-sig-preview {
  font-size: 0.9rem;
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.account-sig-preview .forum-signature {
  margin-top: 0;
}

.account-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--text);
}

.account-field input[type="file"] {
  padding: 0.55rem 0.6rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
