/* Practice module — login, dashboard
   Depends on design tokens (--bg, --surface, --border, --primary, etc.)
   and base component classes (.btn, .form-note, .container, .eyebrow,
   label/input) defined in the main site stylesheet, css/style.css. */

/* Practice login */
.practice-shell {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}
.practice-brand {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--bg-alt), var(--surface-2));
  border-right: 1px solid var(--border);
  padding: 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.practice-brand::before {
  content: "";
  position: absolute; inset: -30% -10% auto -10%; height: 480px;
  background: radial-gradient(closest-side, var(--primary-glow), transparent 70%);
}
.practice-brand > * { position: relative; z-index: 1; }
.practice-brand .brand { font-size: 1.3rem; margin-bottom: 40px; }
.practice-brand .brand-logo { height: 40px; }
.practice-brand h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.practice-feature-list { margin-top: 32px; }
.practice-feature-list li { display: flex; gap: 12px; margin-bottom: 14px; color: var(--text-dim); font-size: 0.92rem; }
.practice-feature-list .check { color: var(--primary); font-weight: 700; }

.practice-form-wrap { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.practice-card { width: 100%; max-width: 400px; }
.practice-panel {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 40px;
}
.practice-panel.active { display: block; }
.practice-panel h2 { margin-bottom: 6px; }
.practice-panel .form-note { margin-bottom: 24px; }

.password-field { position: relative; margin-bottom: 16px; }
.password-field input { padding-right: 52px; margin-bottom: 0; }
.password-toggle {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--text-faint);
  padding: 6px 12px; cursor: pointer; font-size: 0.8rem; font-weight: 600;
  line-height: 1;
}
.password-toggle:hover { color: var(--accent); }

.demo-credentials {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 20px;
}
.demo-credentials-title { font-size: 0.78rem; font-weight: 600; color: var(--text-dim); margin-bottom: 6px; }
.demo-credentials ul { list-style: none; display: grid; gap: 4px; }
.demo-credentials li { font-size: 0.82rem; color: var(--text-dim); }
.demo-credentials code { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px; color: var(--text); }

.alert { border-radius: 8px; padding: 12px 14px; font-size: 0.85rem; margin-bottom: 16px; display: none; }
.alert.visible { display: block; }
.alert-error { background: var(--danger-glow); border: 1px solid var(--danger-dim); color: var(--danger); }
.alert-success { background: var(--primary-glow); border: 1px solid var(--primary-dim); color: var(--primary); }

.link-row { display: flex; justify-content: flex-end; margin: 0 0 20px; }
.link-row a { font-size: 0.85rem; }

@media (max-width: 900px) {
  .practice-shell { grid-template-columns: 1fr; }
  .practice-brand { padding: 48px 24px; }
}

/* Practice dashboard */
.practice-topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--navbar-glass);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.practice-topbar .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.user-menu { display: flex; align-items: center; gap: 10px; }
.user-menu .avatar {
  width: 26px; height: 26px; border-radius: 50%; background: var(--primary);
  color: #04150a; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.75rem;
}
.user-menu #user-menu-name { color: var(--text); font-size: 0.9rem; margin-right: 4px; }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 32px 0 40px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.stat-card .stat-value { font-family: "Poppins", sans-serif; font-size: 1.7rem; font-weight: 700; color: var(--text); }
.stat-card .stat-label { font-size: 0.85rem; color: var(--text-faint); margin-top: 4px; }
@media (max-width: 700px) { .stat-grid { grid-template-columns: 1fr; } }

.task-row {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px;
  background: var(--surface);
}
.task-row input[type="checkbox"] { width: auto; margin: 0; accent-color: var(--primary); }
.task-row label { margin: 0; color: var(--text); font-size: 0.92rem; cursor: pointer; }
.task-row.done { opacity: 0.55; }
.task-row.done label { text-decoration: line-through; }
