.portal-page {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.login-brand {
  text-align: center;
  margin-bottom: 28px;
}

.login-brand h1 {
  margin: 12px 0 4px;
  font-size: 24px;
}

.login-brand p {
  color: var(--text-muted);
  font-size: 14px;
}

.login-form label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
}

.login-form input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  margin-bottom: 14px;
}

.login-error {
  color: #e53935;
  font-size: 13px;
  margin-bottom: 12px;
}

.portal-topbar {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.portal-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  cursor: default;
}

.user-pill::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
}

.boards-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

.boards-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.boards-header h1 {
  font-size: 28px;
  margin-bottom: 6px;
}

.boards-subtitle {
  color: var(--text-muted);
  font-size: 14px;
}

.boards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.board-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.board-card:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.board-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #4262ff, #6b8aff);
  color: #fff;
  font-weight: 600;
}

.board-card h2 {
  font-size: 16px;
  line-height: 1.3;
}

.board-card-meta {
  color: var(--text-muted);
  font-size: 12px;
}

.board-card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.board-card-actions button {
  font-size: 12px;
  padding: 6px 10px;
}

.boards-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 48px 0;
}

.topbar .logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.topbar .logo-link:hover {
  opacity: 0.85;
}
