/* ============================================================
   Sign-in — the only view that renders without the app shell.
   ============================================================ */

.main.login {
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 32px 20px;
  background:
    radial-gradient(1100px 520px at 50% -10%, var(--brand-soft), transparent 70%),
    var(--bg);
}

.login-wrap {
  width: 100%;
  max-width: 400px;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-bottom: 22px;
}
.login-logo {
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}
.login-brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
}
.login-brand-sub {
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: .02em;
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 30px;
  box-shadow: var(--shadow-lg);
}
.login-card h1 {
  font-size: 21px;
  margin-bottom: 6px;
}
.login-lead {
  color: var(--text-2);
  font-size: 13.5px;
  margin-bottom: 20px;
}
.login-card .banner { margin-bottom: 18px; }
.login-card .btn { margin-top: 4px; }

.login-foot {
  text-align: center;
  font-size: 12.5px;
  color: var(--text-3);
  margin-top: 18px;
  line-height: 1.6;
}

/* ---------- the signed-in user, in the sidebar foot ---------- */

.side-user {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-top: 1px solid var(--nav-line);
  min-width: 0;
}
.side-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: var(--r-pill);
  background: var(--brand-500);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11.5px;
  font-weight: 700;
  flex-shrink: 0;
  text-transform: uppercase;
}
.side-user-text { flex: 1; min-width: 0; }
.side-user-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--nav-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.side-user-role {
  font-size: 10.5px;
  color: var(--nav-text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- the roster in the admin console ---------- */

.user-progress-bar {
  width: 74px;
  height: 5px;
  border-radius: var(--r-pill);
  background: var(--surface-3);
  overflow: hidden;
  flex-shrink: 0;
}
.user-progress-bar > i {
  display: block;
  height: 100%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--brand-500), var(--accent-400));
}
