.login-workspace {
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--color-bg);
}

/* Card shell — aligned with MEMBER → Agent create card */
.login-card.agent-mgmt-card {
  width: min(100%, 380px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 1rem 1.15rem 1.1rem;
  box-shadow: 0 8px 24px rgba(16, 29, 51, 0.08);
}

.login-card .agent-mgmt-card__title {
  margin: 0 0 0.2rem;
  font-size: 1.02rem;
  font-weight: 600;
  /* White card — do not use --color-navy-* (light ink in dark-shell variables.css) */
  color: #0f172a;
}

.login-card__subtitle {
  margin: 0 0 0.85rem;
  color: var(--color-text-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.login-card__error {
  margin: 0.65rem 0 0;
  color: #b91c1c;
  font-size: 0.82rem;
  min-height: 1.2em;
}

.login-card .agent-mgmt-create-form .form-group {
  margin-bottom: 0.35rem;
}

.login-card .agent-mgmt-create-form .form-group.form-group--inline {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
  margin-bottom: 0.3rem;
}

.login-card .agent-mgmt-agent-name-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem 0.4rem;
  margin-bottom: 0.45rem;
}

.login-card .agent-mgmt-agent-name-row__label,
.login-card .agent-mgmt-inline-label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  flex: 0 0 auto;
}

.login-card .agent-name-inline__prefix {
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex: 0 0 auto;
}

.login-card .agent-name-inline__login,
.login-card .agent-name-inline__hyphen {
  flex: 0 0 auto;
  font-size: 0.9rem;
  font-weight: 600;
  color: #0f172a;
}

.login-card .agent-name-inline__input {
  flex: 0 0 auto;
  width: 2.85rem;
  min-width: 2.85rem;
  min-height: 1.72rem;
  padding: 0.18rem 0.42rem;
  font-size: 0.86rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: inherit;
  text-transform: lowercase;
}

.login-card .agent-mgmt-inline-input {
  box-sizing: border-box;
  min-height: 1.72rem;
  padding: 0.18rem 0.42rem;
  font-size: 0.86rem;
  width: 5.25rem;
  max-width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-family: inherit;
}

.login-card .agent-mgmt-inline-input--pw {
  width: 7.5rem;
}

.login-card .agent-mgmt-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.login-hint {
  margin: 0.85rem 0 0;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-align: center;
}

.login-card .agent-mgmt-create-form.is-invalid .agent-name-inline__input {
  border-color: #b91c1c;
}
