/* Shared account pages; the chat timeline keeps its existing styles. */
.forum-auth-page {
  --auth-green:#008069; --auth-green-hover:#006a57; --auth-bg:#efeae2;
  --auth-card:#fff; --auth-text:#1f2c34; --auth-muted:#58676c; --auth-border:#ccc;
  --text:var(--auth-text); --muted:var(--auth-muted); color-scheme:light;
  margin:0; min-height:100vh; min-height:100dvh; background:var(--auth-bg);
  color:var(--auth-text); font-family:"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
}
.forum-auth-page *, .forum-auth-page *::before, .forum-auth-page *::after { box-sizing:border-box; }
.forum-auth-page .forum-shell { width:100%; max-width:none; min-height:100dvh; padding:24px 16px; }
.auth-layout { width:100%; max-width:400px; margin:24px auto; }
.auth-panel { padding:28px; background:var(--auth-card); border:1px solid #fff; border-radius:16px; box-shadow:0 10px 35px #253a3020; }
.auth-logo { display:flex; flex-direction:column; align-items:center; gap:3px; color:var(--auth-green); font-size:25px; font-weight:800; text-decoration:none; }
.auth-logo span { font-size:12px; font-weight:500; letter-spacing:2px; text-transform:uppercase; }
.auth-heading { text-align:center; margin:24px 0; }
.auth-heading h1 { font-size:25px; line-height:1.25; margin:0 0 10px; letter-spacing:-.5px; }
.auth-heading p,.auth-help,.auth-terms,.auth-footer, .auth-note p,.auth-warning p { color:var(--auth-muted); font-size:14px; line-height:1.6; }
.download-title { font-size:18px; line-height:1.5; overflow-wrap:anywhere; }
.auth-form,.avatar-editor { display:grid; gap:10px; }
.forum-auth-page label { display:block; font-size:14px; font-weight:600; margin-top:5px; }
.forum-auth-page input:not([type=checkbox]):not([type=range]),.forum-auth-page textarea,.forum-auth-page select {
  display:block; width:100%; min-width:0; padding:12px; border:1px solid var(--auth-border);
  border-radius:8px; background:#fff; color:var(--auth-text); font:inherit; font-size:16px;
}
.forum-auth-page input:focus-visible,.forum-auth-page button:focus-visible,.forum-auth-page a:focus-visible, .forum-auth-page summary:focus-visible {
  outline:3px solid #00806955; outline-offset:3px;
}
.forum-auth-page small { color:var(--auth-muted); line-height:1.5; font-size:12px; }
.forum-auth-page a { color:var(--auth-green); overflow-wrap:anywhere; }
.password-field { display:flex; align-items:center; position:relative; }
.password-field input { padding-right:64px!important; }
.password-field button { position:absolute; right:8px; padding:8px; background:transparent; color:var(--auth-green); border:0; border-radius:5px; font-weight:600; cursor:pointer; }
.forum-auth-page .auth-submit,.forum-auth-page .button { display:flex; align-items:center; justify-content:center; width:100%; padding:12px; min-height:46px; border-radius:8px; border:1px solid transparent; font:inherit; font-size:14px; font-weight:600; cursor:pointer; text-align:center; text-decoration:none; line-height:1.4; }
.forum-auth-page .auth-submit,.forum-auth-page .button.primary { background:var(--auth-green); color:#fff; }
.forum-auth-page .auth-submit:hover,.forum-auth-page .button.primary:hover { background:var(--auth-green-hover); }
.forum-auth-page .button.subtle { border-color:#d8e1dc; background:#f6f8f7; color:var(--auth-green); }
.forum-auth-page button:disabled { opacity:.55; cursor:not-allowed; }
.auth-form>.auth-submit { margin-top:12px; }
.auth-footer { text-align:center; margin:22px 0 0; }
.auth-help { margin:14px 0; font-size:13px; }
.auth-help a,.auth-footer a { font-weight:600; }
.auth-alert,.auth-warning,.auth-note,.forum-auth-page .notice { padding:14px; border-radius:8px; margin:16px 0; font-size:14px; line-height:1.6; overflow-wrap:anywhere; }
.auth-alert { color:#922b2b; background:#fff0f0; border:1px solid #f0b7b7; }
.auth-warning { color:#644b09; background:#fff8dc; border:1px solid #eed27c; }
.auth-warning p,.auth-note p { margin:6px 0 0; }
.auth-note,.forum-auth-page .notice { background:#eaf6ef; border:1px solid #c1dfcf; color:#255640; }
.payment-card { border:1px solid #dce4df; border-radius:12px; padding:16px; }
.forum-auth-page .price { text-align:center; color:var(--auth-green)!important; font-size:32px!important; font-weight:800; margin:0 0 18px; }
.forum-auth-page .price small { display:block; font-weight:400; }
.forum-auth-page .qris { display:block; width:100%; max-width:260px; height:auto; margin:auto; object-fit:contain; border-radius:8px; }
.payment-steps { padding-left:20px; font-size:14px; line-height:1.7; }
.rules-list details { border:1px solid #dce4df; border-radius:10px; margin:12px 0; padding:14px; }
.rules-list summary { cursor:pointer; font-size:14px; font-weight:600; color:var(--auth-green); }
.rules-list p { font-size:14px; line-height:1.7; color:var(--auth-muted); }
.profile-heading { text-align:center; }
.profile-heading h2 { font-size:21px; overflow-wrap:anywhere; }
.role-badge { display:inline-block; padding:5px 12px; border-radius:20px; background:#e5f4ec; color:var(--auth-green); font-size:12px; font-weight:700; }
.forum-auth-page .profile-avatar { position:relative; display:grid; place-items:center; width:88px; height:88px; margin:14px auto; border-radius:50%; background:#d9eee4; color:var(--auth-green); font-size:28px; overflow:hidden; }
.profile-avatar img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.forum-auth-page [hidden] { display:none!important; }
.account-facts { margin:24px 0; }
.account-facts div { padding:12px 0; border-bottom:1px solid #e9eceb; }
.account-facts dt { color:var(--auth-muted); font-size:12px; }
.account-facts dd { margin:5px 0 0; font-size:14px; overflow-wrap:anywhere; }
.account-actions,.profile-actions,.profile-actions form { display:grid; gap:10px; margin-top:12px; }
.avatar-editor { padding-bottom:18px; border-bottom:1px solid #e4e9e6; }
#avatarStatus { font-size:12px; line-height:1.5; }
.forum-auth-page input[type=range] { width:100%; accent-color:var(--auth-green); }
@media(max-width:768px) {
  .forum-auth-page .forum-shell { padding:16px 12px; }
  .auth-layout { max-width:100%; margin:0 auto; }
  .auth-panel { padding:24px 20px; }
}
@media(prefers-reduced-motion:no-preference) {
  .forum-auth-page button,.forum-auth-page a { transition:background-color .15s ease; }
}
