/* Public account pages: login, register, forgot/reset password, dashboard */

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  padding: 24px;
}
.auth-box {
  background: #fff;
  padding: 34px 32px;
  border-radius: 18px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.auth-box .brand-name { text-align: center; font-weight: 800; font-size: 1.35rem; color: var(--navy-dark); margin-bottom: 4px; }
.auth-box .brand-name span { color: var(--gold-dark); }
.auth-box .sub { text-align: center; color: var(--text-muted); font-size: 0.86rem; margin-bottom: 22px; }
.auth-box .form-row { margin-bottom: 15px; }
.auth-box label { display: block; font-size: 0.84rem; font-weight: 600; margin-bottom: 6px; }
.auth-box input[type=text], .auth-box input[type=email], .auth-box input[type=password], .auth-box input[type=tel], .auth-box select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: 8px; font-size: 0.92rem;
}
.auth-box input:focus, .auth-box select:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.auth-box .btn { width: 100%; justify-content: center; margin-top: 6px; }
.auth-box .switch-link { text-align: center; margin-top: 18px; font-size: 0.86rem; color: var(--text-muted); }
.auth-box .switch-link a { color: var(--navy); font-weight: 600; }
.auth-box .hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }
.auth-box .type-toggle { display: flex; gap: 10px; margin-bottom: 18px; }
.auth-box .type-toggle label {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  border: 1.5px solid var(--border); border-radius: 10px; padding: 10px; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; color: var(--text-muted);
}
.auth-box .type-toggle input { width: auto; margin: 0; }
.auth-box .type-toggle input:checked + span { color: var(--navy-dark); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); }
.btn-danger { background: #fdeaea; color: #e63b3b; }
.btn-danger:hover { background: #f9d3d3; }
.alert { padding: 11px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 0.86rem; }
.alert-success { background: #e4f7ec; color: #0f7a45; }
.alert-error { background: #fdeaea; color: #c22b2b; }
.alert-info { background: #eaf1fd; color: #164a9c; }

/* Dashboard shell */
.dash-shell { display: flex; min-height: calc(100vh - 0px); background: var(--off-white); }
.dash-sidebar { width: 230px; flex-shrink: 0; background: var(--navy-dark); color: #cdd6ee; padding: 20px 0; }
.dash-sidebar .brand { padding: 0 20px 18px; color: #fff; font-weight: 800; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 12px; }
.dash-sidebar .brand span { color: var(--gold); }
.dash-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 20px; font-size: 0.9rem; color: #b9c3dc; }
.dash-nav a svg { width: 16px; height: 16px; }
.dash-nav a:hover, .dash-nav a.active { background: rgba(255,255,255,.06); color: #fff; border-right: 3px solid var(--gold); }
.dash-main { flex: 1; min-width: 0; }
.dash-topbar { background: #fff; border-bottom: 1px solid var(--border); padding: 16px 26px; display: flex; align-items: center; justify-content: space-between; }
.dash-topbar h1 { font-size: 1.15rem; margin: 0; }
.dash-content { padding: 26px; max-width: 900px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.stat-card .num { font-size: 1.5rem; font-weight: 800; color: var(--navy-dark); }
.stat-card .label { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.dash-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 22px; margin-bottom: 20px; }
.dash-card h2 { font-size: 1.02rem; margin: 0 0 4px; }
.dash-card .sub { color: var(--text-muted); font-size: 0.85rem; margin: 0 0 16px; }
.empty-state { text-align: center; padding: 36px 16px; color: var(--text-muted); }
.empty-state svg { width: 40px; height: 40px; margin-bottom: 10px; color: var(--border); }
.avatar-thumb { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); }
.avatar-thumb svg { width: 40%; height: 40%; }

@media (max-width: 860px) {
  .dash-shell { flex-direction: column; }
  .dash-sidebar { width: 100%; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
