.auth-wrap{ max-width:470px; margin:50px auto; padding:0 16px; }
.auth-card{ background:#fff; border-radius:16px; box-shadow:0 14px 44px rgba(31,58,95,.12); padding:34px 30px; }
.auth-card h1{ font-size:26px; font-weight:800; color:#1f3a5f; margin:0 0 6px; text-align:center; }
.auth-sub{ text-align:center; color:#6b7682; margin-bottom:22px; font-size:15px; }
.auth-field{ margin-bottom:14px; }
.auth-field label{ display:block; font-size:13px; font-weight:600; color:#48525e; margin-bottom:5px; }
.auth-field input, .auth-field select{ width:100%; height:46px; border:1px solid #d7dde5; border-radius:9px; padding:0 14px; font-size:15px; box-sizing:border-box; background:#fff; color:#27313c; }
.auth-field textarea{ width:100%; border:1px solid #d7dde5; border-radius:9px; padding:10px 14px; font-size:15px; box-sizing:border-box; font-family:inherit; background:#fff; color:#27313c; }
.auth-field input:focus, .auth-field select:focus, .auth-field textarea:focus{ outline:none; border-color:#1f3a5f; box-shadow:0 0 0 3px rgba(31,58,95,.12); }
.auth-btn{ width:100%; height:50px; border:none; border-radius:10px; background:linear-gradient(135deg,#E9B11C,#C98F08); color:#1b2430; font-weight:700; font-size:16px; cursor:pointer; box-shadow:0 8px 22px rgba(31,58,95,.18); transition:transform .15s ease; }
.auth-btn:hover{ transform:translateY(-1px); }
.auth-alt{ text-align:center; margin-top:18px; color:#6b7682; font-size:14px; }
.auth-alt a{ color:#1f6fd6; font-weight:600; }
.auth-err{ background:#fdecec; border:1px solid #f5c2c2; color:#b3261e; border-radius:9px; padding:10px 14px; font-size:14px; margin-bottom:16px; }
.role-toggle{ display:flex; gap:10px; margin-bottom:20px; }
.role-toggle input{ display:none; }
.role-toggle label{ flex:1; text-align:center; border:2px solid #e2e7ee; border-radius:11px; padding:12px 8px; cursor:pointer; font-weight:600; color:#48525e; font-size:14px; transition:all .15s; margin:0; }
.role-toggle input:checked + label{ border-color:#E9B11C; background:#fff8e8; color:#1f3a5f; }
.role-toggle .ic{ display:block; font-size:22px; margin-bottom:4px; color:#1f3a5f; }
.pro-only{ display:none; }
/* account hub */
.acct-wrap{ max-width:760px; margin:46px auto; padding:0 16px; }
.acct-card{ background:#fff; border-radius:16px; box-shadow:0 14px 44px rgba(31,58,95,.12); padding:30px; }
.acct-head{ display:flex; align-items:center; gap:16px; border-bottom:1px solid #eef0f3; padding-bottom:20px; margin-bottom:20px; }
.acct-avatar{ width:64px; height:64px; border-radius:50%; background:#1f3a5f; color:#fff; display:flex; align-items:center; justify-content:center; font-size:26px; font-weight:800; }
.acct-name{ font-size:22px; font-weight:800; color:#1f3a5f; margin:0; }
.acct-role{ display:inline-block; background:#eef3fb; color:#1f3a5f; border-radius:999px; padding:3px 12px; font-size:13px; font-weight:600; margin-top:4px; }
.acct-role.pro{ background:#fff8e8; color:#9a6b00; }
.acct-role.admin{ background:#e7f6ec; color:#1a8a3a; }
.acct-actions{ display:flex; flex-wrap:wrap; gap:14px; }
.acct-tile{ flex:1 1 220px; border:1px solid #eef0f3; border-radius:12px; padding:20px; text-decoration:none; color:#27313c; transition:all .15s; }
.acct-tile:hover{ box-shadow:0 10px 26px rgba(31,58,95,.12); transform:translateY(-3px); text-decoration:none; color:#27313c; }
.acct-tile i{ font-size:24px; color:#E9B11C; margin-bottom:8px; display:block; }
.acct-tile b{ display:block; color:#1f3a5f; margin-bottom:4px; }
.acct-logout{ color:#b3261e; font-weight:600; }

/* ---------- dark mode (auth + account cards) ---------- */
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .acct-card{ background:#142640; box-shadow:0 14px 44px rgba(0,0,0,.45); }
html[data-theme="dark"] .auth-card h1,
html[data-theme="dark"] .acct-name{ color:#fff; }
html[data-theme="dark"] .auth-sub,
html[data-theme="dark"] .auth-alt{ color:#7a93b0; }
html[data-theme="dark"] .auth-field label{ color:#aebbd0; }
html[data-theme="dark"] .auth-field input,
html[data-theme="dark"] .auth-field select,
html[data-theme="dark"] .auth-field textarea{ background:#0d1c2e; border-color:rgba(255,255,255,.14); color:#e8f0fa; }
html[data-theme="dark"] .auth-field input:focus,
html[data-theme="dark"] .auth-field select:focus,
html[data-theme="dark"] .auth-field textarea:focus{ border-color:#E9B11C; box-shadow:0 0 0 3px rgba(233,177,28,.20); }
html[data-theme="dark"] .role-toggle label{ border-color:rgba(255,255,255,.14); color:#aebbd0; background:#0d1c2e; }
html[data-theme="dark"] .role-toggle input:checked + label{ border-color:#E9B11C; background:rgba(233,177,28,.12); color:#fff; }
html[data-theme="dark"] .role-toggle .ic{ color:#cdd9ea; }
html[data-theme="dark"] .auth-alt a{ color:#E9B11C; }
html[data-theme="dark"] .acct-head{ border-color:rgba(255,255,255,.10); }
html[data-theme="dark"] .acct-role{ background:rgba(255,255,255,.07); color:#cdd9ea; }
html[data-theme="dark"] .acct-tile{ border-color:rgba(255,255,255,.10); color:#cdd9ea; }
html[data-theme="dark"] .acct-tile:hover{ box-shadow:0 10px 26px rgba(0,0,0,.4); color:#cdd9ea; }
html[data-theme="dark"] .acct-tile b{ color:#fff; }
/* override inline-coloured text on the account card in dark mode */
html[data-theme="dark"] .acct-card p[style],
html[data-theme="dark"] .acct-card > div[style*="border-top"]{ color:#aebbd0 !important; }
html[data-theme="dark"] .acct-card h3[style]{ color:#cdd9ea !important; }
html[data-theme="dark"] .acct-card .acct-head span[style]{ color:#7a93b0 !important; }
html[data-theme="dark"] .acct-card > div[style*="border-top"]{ border-top-color:rgba(255,255,255,.10) !important; }
