/* Player account / cabinet styles (login, register, cabinet, stats, donate).
 * Loaded only on /account/ pages via the base template's `extra_head` block, so
 * the rest of the site is unaffected. No inline styles are used anywhere — the
 * strict site CSP (style-src 'self') is satisfied entirely by this file. */

.account-shell {
  max-width: 540px;
  margin: 0 auto;
  padding: 4rem 1.25rem 5rem;
}
.account-shell-wide {
  max-width: 880px;
}
.account-shell h1 {
  margin: 0.2rem 0 0.6rem;
}
.account-shell .section-kicker {
  margin-bottom: 0.4rem;
}
.account-shell .hero-description {
  margin-bottom: 1.6rem;
}

/* Forms */
.account-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-top: 1rem;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-row label {
  font-weight: 600;
  font-size: 0.95rem;
}
.account-form input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.85rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(12, 16, 28, 0.65);
  color: inherit;
  font-size: 1rem;
}
.account-form input:focus {
  outline: none;
  border-color: rgba(120, 170, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(120, 170, 255, 0.18);
}
.form-hint {
  margin: 0;
  font-size: 0.82rem;
  opacity: 0.65;
}
.form-error {
  margin: 0;
  font-size: 0.85rem;
  color: #ff9a9a;
}
.form-actions {
  margin-top: 0.5rem;
}
.form-actions .button {
  width: 100%;
}

.account-alt {
  margin-top: 1.4rem;
  font-size: 0.95rem;
  opacity: 0.85;
}
.account-alt a {
  font-weight: 600;
}

/* Banners */
.account-banner {
  margin: 0 0 1.1rem;
  padding: 0.8rem 1rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(20, 26, 40, 0.6);
  font-size: 0.95rem;
}
.account-banner-error {
  border-color: rgba(255, 120, 120, 0.5);
  background: rgba(60, 20, 24, 0.5);
}
.account-banner-warn {
  border-color: rgba(255, 200, 120, 0.5);
  background: rgba(60, 44, 18, 0.45);
}
.account-banner-ok {
  border-color: rgba(120, 230, 160, 0.5);
  background: rgba(18, 52, 32, 0.45);
}

/* Cabinet layout */
.account-toolbar {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}
.inline-form {
  display: inline;
  margin: 0;
}
.account-panel {
  margin: 1.2rem 0;
  padding: 1.3rem 1.4rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(14, 18, 30, 0.55);
  backdrop-filter: blur(6px);
}
.account-panel h2 {
  margin: 0 0 0.9rem;
  font-size: 1.15rem;
}
.account-panel h3 {
  margin: 1.2rem 0 0.6rem;
  font-size: 1rem;
  opacity: 0.9;
}

/* Stat grids */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.7rem 1.2rem;
  margin: 0;
}
.stat-grid > div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.stat-grid dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.6;
}
.stat-grid dd {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}
.stat-grid-big > div {
  gap: 0.25rem;
}
.stat-grid-big dd {
  font-size: 1.6rem;
}

/* Tables (skills, ranking) */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.data-table th,
.data-table td {
  text-align: left;
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.data-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.6;
}
.data-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.data-table .muted {
  opacity: 0.6;
}

/* Password show/hide toggle injected by account.js */
.password-toggle {
  align-self: flex-start;
  margin-top: 0.2rem;
  padding: 0;
  background: none;
  border: none;
  color: inherit;
  font-size: 0.82rem;
  opacity: 0.7;
  cursor: pointer;
}
.password-toggle:hover {
  opacity: 1;
}

@media (max-width: 600px) {
  .stat-grid-big dd {
    font-size: 1.3rem;
  }
}
